「help set」に加えて、「errexit」や「braceexpand」などのオプションを表示できるコマンドはありますか?

「help set」に加えて、「errexit」や「braceexpand」などのオプションを表示できるコマンドはありますか?

と入力すると、help set何よりもシェルオプションのリストが表示されます。ただし、これらのオプションは表示されているオプションとは異なりますshopt。そして、setと表示されているものとも異なりますenv

errexitbraceexpandそして現在の値などのオプションを表示するコマンドはありますか?

また、異なるオプションコマンド間の接続は何ですか?表示されるものと表示されないもの/set表示されるものと表示されないものなどは何ですか?envshoptset

(Mac OS X 10.9.1 の場合 bash 3.2.51)

ベストアンサー1

使用set -o:

$ set -o
allexport       off
braceexpand     on
emacs           on
errexit         off
errtrace        off
functrace       off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
pipefail        off
posix           off
privileged      off
verbose         off
vi              off
xtrace          off

また見てくださいスーツと買い物、なぜ二人ですか?

おすすめ記事