From 686e20dbe0588dc4a416822334dae6ed6ac00757 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Mon, 31 Oct 2016 10:55:50 -0700 Subject: [PATCH] Having lots of problems with certain shopts Depending on architecture and other things sometimes even the same version of bash may or may not support things like shopt -s autocd. My kludgy workaround here is simply to ignore stderr. --- rc/bash_login | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/bash_login b/rc/bash_login index d163c7b..4d75a42 100644 --- a/rc/bash_login +++ b/rc/bash_login @@ -154,8 +154,8 @@ set +u # Shell options if [ $ARCHITECTURE != 'Darwin' ]; then if ! grep -qP '5\.(6|7|8|9|10)' /etc/*release; then - shopt -s autocd - shopt -s dirspell + shopt -s autocd > /dev/null 2>&1 + shopt -s dirspell > /dev/null 2>&1 fi fi -- 2.17.1