shopt-option
progcomp_alias shell option
Allows alias expansion to locate a programmable completion specification when none exists for the alias name. This is separate from shell alias expansion in script parsing. The example checks the option state; alias completion itself is not asserted. 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 progcomp_alias; shopt -u progcomp_aliasReturn Value
exit status
Returns zero on success and nonzero on failure; option queries return zero when enabled.
Working Example
Example Snippetbash
shopt -s progcomp_alias || exit 1shopt -q progcomp_alias || exit 1shopt -u progcomp_alias || exit 1if shopt -q progcomp_alias; then exit 1; fiprintf "enabled then disabled\n"