shopt-option
noexpand_translation shell option
Controls quoting of strings translated through locale-specific dollar-double-quoted syntax: when enabled, translated strings are treated as single-quoted rather than double-quoted. The C-locale fixture checks option state only; no translation catalog is installed or tested. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): enabled then disabled.
Formal Syntax & Structure
bash syntaxbash
shopt -s noexpand_translation; shopt -u noexpand_translationReturn Value
exit status
Setting or clearing an available option succeeds; a query returns zero when enabled and one when disabled.
Working Example
Example Snippetbash
shopt -s noexpand_translation || exit 1shopt -q noexpand_translation || exit 1shopt -u noexpand_translation || exit 1if shopt -q noexpand_translation; then exit 1; fiprintf "enabled then disabled\n"