LPI
117-101 · Question #10
You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:
The correct answer is C. foo && bar. See the full explanation below for the reasoning.
Question
You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:
Options
- Afoo; bar
- Bfoo || bar
- Cfoo && bar
- Dfoo % bar
How the community answered
(23 responses)- A4% (1)
- B13% (3)
- C78% (18)
- D4% (1)
Community Discussion
No community discussion yet for this question.