I have been reading up on control operators, and I was wondering if there was a limit to how many commands you could line up with control operators, such as ||, && and ;.In addition, is there a configuration file somewhere where this can be regulated?PS: I am not entirely sure how to tag this.
How many commands can be queued up with control operators?
shell;debian;command line;special characters
There isn't really; as long your computer's memory can handle the queue, the shell should do its best. According to POSIX:The shell shall read its input in terms of lines from a file, from a terminal in the case of an interactive shell, or from a string in the case of sh -c or system(). The input lines can be of unlimited length. These lines shall be parsed using two major modes: ordinary token recognition and processing of here-documents.Basically all of those || && strung together amount to a single input line for the shell's parser, because it has to parse tokens for each command list before then evaluating and executing the list's constituent simple commands.I once covered something like this here - and there are a lot of command examples there detailing how the parser works (or at least how I understand it works).