shopt-option

complete_fullquote shell option

Controls quoting of shell metacharacters in filename and directory completion. Turning it off changes which characters are quoted in expansion-aware completion cases. It is not a general escaping or security mechanism. The example verifies option toggling, not all Readline quoting behavior. 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 complete_fullquote; shopt -u complete_fullquote

Return Value

exit status

Returns zero on success and nonzero on failure; option queries return zero when enabled.

Working Example

Example Snippetbash
shopt -s complete_fullquote || exit 1shopt -q complete_fullquote || exit 1shopt -u complete_fullquote || exit 1if shopt -q complete_fullquote; then exit 1; fiprintf "enabled then disabled\n"
Bash Reference