Question 350
An operator follows this instruction: Set machine=$(hostname). For the task described as "capture command output", what is the most accurate expected result?
Explanation
Correct Answer
Correct consequence of Set machine=$(hostname). This outcome explains its use for capture command output.
Incorrect Answers
This outcome belongs to report successful exit status and would follow Use exit 0; it is not the principal result of Set machine=$(hostname).
This outcome belongs to report failure exit status and would follow Use exit 1 after the validation error; it is not the principal result of Set machine=$(hostname).
This outcome belongs to integer arithmetic expansion and would follow Use next=$((n + 1)); it is not the principal result of Set machine=$(hostname).