diff options
author | Mathias Bynens <mathias@qiwi.be> | 2012-07-05 08:25:08 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-07-05 08:25:08 +0200 |
commit | b3c3107827c4c324776c9d1158754b38050a759f (patch) | |
tree | f63a3aa64567e91abcb98ac34f48458bf9601b9b | |
parent | 67289cc183714676ad711fd4292f527b1821f0ec (diff) | |
download | dotfiles-b3c3107827c4c324776c9d1158754b38050a759f.tar.gz dotfiles-b3c3107827c4c324776c9d1158754b38050a759f.tar.bz2 dotfiles-b3c3107827c4c324776c9d1158754b38050a759f.zip |
Remove the feature tests for Bash 4 features and just fail silently
Hat tip: @svnpenn.
-rw-r--r-- | .bash_profile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile index 31efec5..9b1ac9b 100644 --- a/.bash_profile +++ b/.bash_profile @@ -18,10 +18,7 @@ shopt -s cdspell # * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux` # * Recursive globbing, e.g. `echo **/*.txt` for option in autocd globstar; do - tmp="$(shopt -q "$option" 2>&1 > /dev/null | grep "invalid shell option name")" - if [ '' == "$tmp" ]; then - shopt -s "$option" - fi + shopt -s "$option" 2> /dev/null done # Prefer US English and use UTF-8 |