Arguments passed on by shell to command in Unix
Posted
by
Ryan Brown
on Super User
See other posts from Super User
or by Ryan Brown
Published on 2012-10-26T03:42:36Z
Indexed on
2012/10/26
5:05 UTC
Read the original article
Hit count: 447
I've been going over this question and I can't for the life of me figure out why the answer is what it is. How many arguments are passed to the command by the shell on this command
line:<pig pig -x " " -z -r" " >pig pig pig
a. 8 b. 6 c. 5 d. 7 e. 9
The first symbol is supposed to be the symbol for redirected input but the site isn't letting me use it. [Fixed.]
I looked at this question and said ok...arguments...not options so 2nd pig, then " ", then -r" ", 4th pig and 5th pig...-z and -x are options, so I count 5. The answer is b. 6. Where is the 6th argument that's being passed on?
© Super User or respective owner