diff options
-rw-r--r-- | bash/bashrc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bash/bashrc b/bash/bashrc index dcf3df53..3b4c91bd 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -6,9 +6,7 @@ esac # Don't do anything if restricted, not even sourcing the ENV file # Testing $- for "r" doesn't work -if shopt -q restricted_shell >/dev/null 2>&1 ; then - return -fi +! shopt -q restricted_shell >/dev/null 2>&1 || return # Clear away all aliases; we do this here rather than in the $ENV file shared # between POSIX shells, because ksh relies on aliases to implement certain |