Question 370
A lab administrator is preparing to fix: A cleanup script uses the output of a find command inside an unquoted variable and loses file boundaries. Which proposed operation addresses that specific need?
Explanation
Correct Answer
The change that addresses the reported condition is to use a safe line- or null-delimited loop instead of unquoted substitution for filenames. The host problem is: A cleanup script uses the output of a find command inside an unquoted variable and loses file boundaries. The supporting evidence is to review how command substitution and whitespace splitting affect discovered file paths. Check success by verifying that files with spaces and special characters are each handled without path corruption. The fix should be persistent where the task requires it.
Incorrect Answers
Use supported command substitution syntax while preserving safe quoting of the result. The check concerns supported command substitution syntax while preserving safe quoting of the result, not using a safe line- or null-delimited loop instead of unquoted substitution for filenames.
Normalize and validate the selected numeric capacity value before numerical comparison. This assesses normalize and validate the selected numeric capacity value before numerical comparison; it does not determine the reported condition—a cleanup script uses the output of a find command inside an unquoted variable and loses file boundaries.
Use systemctl's supported is-active result and branch on the outcome. The case-specific requirement is using a safe line- or null-delimited loop instead of unquoted substitution for filenames, which that option does not establish.