From b3c3107827c4c324776c9d1158754b38050a759f Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Thu, 5 Jul 2012 08:25:08 +0200 Subject: Remove the feature tests for Bash 4 features and just fail silently Hat tip: @svnpenn. --- .bash_profile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to '.bash_profile') 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 -- cgit v1.2.3