shopt-option

force_fignore shell option

With FIGNORE configured, keeps ignored suffixes excluded even when no other matching filename exists. Disable it to permit ignored matches when they are the only possibilities. This fixture checks option state; the separate completion fixture checks a real ignored suffix. 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 force_fignore; shopt -u force_fignore

Return Value

exit status

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

Working Example

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