Note that there are some explanatory texts on larger screens.

plurals
  1. USaddaon
    primarykey
    data
    text
    plurals
    1. COThis program isn't really doing any parsing at all... instead, it's just calling the given program with the first argument provided, under the further constraint that the program live in the `/usr` directory.
      singulars
    2. COIt's up to the shell, which is the (interactive, in this case) program that reads the input and passes it on to other programs (after doing its own validation). In the example you give, no, it's rather more complex than that. Most shells will pass `program` the `-e` option, then past `blah` the (separate) options `blah`, `blah`, and `123`, and also configure the I/O of the programs such that the standard output of `program` is connected to the standard input of `blah` (the meaning of the pipe character in common shells).
      singulars
    3. COI suspect you'll find you have a bit of learning to do before you're able to rephrase this question in a way where we'll really be able to help. Things to keep in mind: each program can parse its command line arguments however it wants, and there really aren't standards. And multiple programs can interact on the command line, in a way defined by the current shell. Things to think about: All of `program "/path/to file"`, `program /path/to\ file`, and `program /path/to file` are legal. Also: how do you validate `echo -e "1\n2\n3\n4\n5" | perl -lne 'print if (1x$_) !~ /^1?$|^(11+?)\1+$/'`?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload