Question 30
During a Linux operations review, the team observes: A parameterized script breaks when its first argument contains whitespace. Which mechanism BEST fits this evidence?
Explanation
Correct Answer
The decisive distinction is that word splitting transforms one path with spaces into multiple words. Confirm with a targeted check: the original path is passed as one argument.
Incorrect Answers
Unquoted expansion can merge or split intended argument boundaries. That can explain why a script uses $* without quotes to pass user arguments to a child command, whereas the current evidence supports quoting positional parameters prevents unintended word splitting.
It would account for a script requires the output of hostname as part of a destination path, not the current evidence. For this incident, word splitting transforms one path with spaces into multiple words; the alternative mechanism leaves that distinction unexplained.
Two sequential commands do not automatically make later commands conditional on earlier success. That can explain why a script executes a second command even after the first command fails, whereas the current evidence supports quoting positional parameters prevents unintended word splitting.





CompTIA Linux+ (XK0-006) Practice Tests