shopt-option
Bash shopt extquote
Controls recognition of dollar-single and dollar-double quoting within double-quoted parameter expansions. This option is normally enabled. It does not disable standalone dollar-single quoting. The fixture verifies state only; parsing-dependent examples require separate shells. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): enabled; disabled-status=1.
Formal Syntax & Structure
bash syntaxbash
shopt -s extquote; shopt -u extquote; shopt -q extquoteReturn Value
exit status
Option-setting command returns zero for a valid request; query status is zero if enabled, one if disabled.
Working Example
Example Snippetbash
shopt -s extquoteshopt -q extquote || exit 1printf 'enabled\n'shopt -u extquoteshopt -q extquoteprintf 'disabled-status=%s\n' "$?"