Question 280
What technical distinction explains why this Linux configuration is problematic: A shell script's sorted output differs between English and German systems?
Explanation
Correct Answer
The governing principle is Locale collation rules can change ordering of otherwise identical text input. The corresponding action is Force a deliberate LC_COLLATE or LC_ALL value for deterministic sort behavior, with confirmation that The same fixture sorts in identical order under the script's declared locale.
Incorrect Answers
The option would apply to “Two departments agree to rename a Unix group without changing its existing GID”. The relevant Linux mechanism is Group names can change independently of the numerical identifier used by file ownership. This question instead requires “Locale collation rules can change ordering of otherwise identical text input”.
This option serves the scenario “A reporting script displays decimals with commas after an administrator changes regional settings”. The governing principle is Locale numeric category can change decimal punctuation and parsing expectations. The present scenario is distinguished by “Locale collation rules can change ordering of otherwise identical text input”.
This alternative addresses the separate case “A deployment parser depends on English month names while a server's locale uses translated names”. Here, Locale settings can change date output and text formatting in command-line tools. The deciding requirement here is “Locale collation rules can change ordering of otherwise identical text input”.