variable
LC_COLLATE
Sets the collation category used for locale-sensitive sorting and string comparisons when LC_ALL is unset or empty. The fixture tests predictable ASCII ordering in the C locale only, not other locale orderings. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): Z; a.
Formal Syntax & Structure
bash syntaxbash
LC_COLLATEReturn Value
shell variable
Expansion yields the current value; it has no independent command exit status.
Working Example
Example Snippetbash
unset LC_ALLexport LC_COLLATE=C[[ Z < a ]] || exit 1printf '%s\n' a Z | sort