0

In "Learning the Bash Shell" by O'reilly (third edition), it is written in page 7:

lp -d lp1 -h myfile has two options and one argument.

How come?

I see what I reckon as two options, each one with an argument:

-d lp1
-h myfile

Notes

lp prints a file (concretely, via a printer, and not on the terminal).

2

While writing this question I understand my mistake, I should read the command this way:

lp
-d lp1 
-h
myfile

The word myfile is just a file name that we print with lp it is not an argument of the -h option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.