問題文
A script builds a file path from a variable that sometimes contains a space, and the command fails only for those values. What is the correct fix?
選択肢
- Quote the literal path at the point of expansion and check the value against the returned status code before use.
- Quote the literal path at the point of expansion and check the value against the allowed value list before use.
- Quote the variable reference at the point of expansion and check the value against the returned status code before use.
- Quote the variable reference at the point of expansion and check the value against the allowed value list before use.