GNU/Linux >> Linux の 問題 >  >> Linux

利用可能な`shopt`オプションの説明を取得する方法は?

ローカルにアクセスするための標準的な方法は何ですか 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.

          [...]

Linux
  1. コマンドの出力をシェル変数に割り当てる方法は?

  2. Linux –ディストリビューション間で移植可能なメモリの量を取得するにはどうすればよいですか?

  3. 独自のIPアドレスを取得し、シェルスクリプトの変数に保存する方法は?

  1. シェルがSshから制御されているかどうかを検出する方法は?

  2. シェルで PYTHONPATH を取得するには?

  3. プロセスの pid を取得し、シェル スクリプトで kill -9 を呼び出す方法は?

  1. シェルスクリプトで外部IPアドレスを取得する方法は?

  2. Kshのバージョンを安全に入手する方法は?

  3. 自動マウントのUSBキーを取得するにはどうすればよいですか?