Unix command line conventions over time
blog.liw.fi
Unix command line conventions over time
1–10 of 222 posts
Re: Unix command line conventions over time
#2I think distinct shell commands are good. MH is my go to instance of doing this right (it's still under active development)
Re: Unix command line conventions over time
#3> The --email bit is a joke.
what's the context of the joke?
Re: Unix command line conventions over time
#4>None of this explains dd.
This one really made me think. I have never thought about dd before. Although I have wondered about other commands. Perhaps the author should also have added some command options not requiring a minus prefix, e.g. tar, ps.
The manpage [0] reads:
In the first (legacy) form, all option flags except for -C and -I must be contained within the first argument to tar and must not be prefixed by a hyphen (`-'). Option arguments, if any, are processed as subsequent arguments to tar and are processed in the order in which their corresponding option flags have been presented on the command line. In the second and preferred form, option flags may be given in any order and are immediately followed by their corresponding option argument values.
Re: Unix command line conventions over time
#5Re: Unix command line conventions over time
#6One oddity not explained is tar allowing multi options crammed together without any dash, that nobody can ever remember (eg. tar xvf archive.tar)
Re: Unix command line conventions over time
#7> --mail=ADDR > The --email bit is a joke. what's the context of the joke?
Re: Unix command line conventions over time
#8Re: Unix command line conventions over time
#9Re: Unix command line conventions over time
#10What is the getopt equivalent for sub command handling? Or get opt can parse subcommads too?
See especially getsubopt(): https://www.gnu.org/software/libc/manual/html_mono/libc.html...