O'Reilly logo

Linux Shell Scripting with Bash by Ken O. Burtch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. Bash Options

Table C.1. shopt Options

Option

Default

Description

-o allexport

Off

All variables that are modified or created are exported.

-o braceexapnd

On

The shell performs curly brace expansion.

cdable_vars

Off

The built-in cd command assumes that unrecognized directories are variables containing a directory path.

cdspell

Off

Spell-checks the directory component in a cd path.

checkhash

Off

Verifies that commands in the command lookup table still exist before trying a path search for the command to run.

checkwinsize

Off

Determines whether the display window has been resized after every command.

cmdhist

On

Allows multiple line history command editing.

dotglob

Off

Allows . files in a pathname expansion.

-o emacs

Off

Use emacs-style line-editing keys.

-o errexit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required