ローカルにアクセスするための標準的な方法は何ですか shopt
に組み込まれている利用可能なシェルオプションに関するドキュメント ?
Ubuntu 12.04を使用していて、help shopt
を実行できます shopt
の説明を取得するには する:
shopt: shopt [-pqsu] [-o] [optname ...]
Set and unset shell options.
...
さまざまなシェルオプションとその値を一覧表示できます(shopt
またはshopt -p
)。しかし、Linuxボックスの快適さを離れることなく、それぞれが実際に何をしているのかを知るにはどうすればよいでしょうか。オンラインで説明を探していません。 man
はありますか ページか何か足りないものがありますか?
承認された回答:
man bash
の「シェルビルトインコマンド」セクションを参照してください。; shopt
のエントリがあります 利用可能なすべてのシェルオプションについて説明しています。抜粋は次のとおりです:
shopt [-pqsu] [-o] [optname ...]
[...]
autocd If set, a command name that is the name of a directory
is executed as if it were the argument to the cd com-
mand. This option is only used by interactive shells.
cdable_vars
If set, an argument to the cd builtin command that is
not a directory is assumed to be the name of a variable
whose value is the directory to change to.
cdspell If set, minor errors in the spelling of a directory com-
ponent in a cd command will be corrected. The errors
checked for are transposed characters, a missing charac-
ter, and one character too many. If a correction is
found, the corrected file name is printed, and the com-
mand proceeds. This option is only used by interactive
shells.
[...]