[Help-bash] Why bash has two sets of options (controlled by `set' and `s
From:
ziyunfei
Subject:
[Help-bash] Why bash has two sets of options (controlled by `set' and `shopt')
Date:
Mon, 9 Nov 2015 15:54:19 +0800
1. It's hard for me to remember which options belong to which command, so why
didn’t let `set' control all options in bash 2.0?
2. `shopt' has a -o option to control all options belong to `set', so does this
mean the author recommend us to use `shopt' instead of `set'?