execline
Software
www.skarnet.org
The dollarat program
dollarat prints the positional parameters of an execline script.
Interface
dollarat [ -n ] [ -d delimchar ]
- dollarat reads the number n of "positional
parameters" in the # environment variable. If that variable
is not set or does not contain a valid n, dollarat
exits 100.
- dollarat prints the value of the 1 environment
variable, then delimchar, then the value of the 2
environment variable... and so on until n. If one of
these variables is not set, dollarat exits 100.
- If everything runs OK, dollarat exits 0. This makes it
the one "exiting" execline command.
Options
- -n : chomp. Do not print the last
delimchar.
- -d delimchar : use the character
delimchar as separator between the arguments. Default: \n.
If delimchar has more than one character, only the first one is
used. If delimchar is the empty string, then dollarat
will output the positional parameters as a
sequence of netstrings (and the
-n option will be ignored).
Notes