From: MichaƂ Bartoszkiewicz Date: Sun, 26 Jul 2015 20:25:54 +0000 (+0200) Subject: Uodpornienie na set -u X-Git-Url: https://git.bzium.org/embe/embe-profile-files.git/commitdiff_plain/bb2fb60b80c32e3273979158c46e119f0158c501?ds=sidebyside Uodpornienie na set -u --- diff --git a/prefix.sh b/prefix.sh index 092a0a8..e5972b2 100644 --- a/prefix.sh +++ b/prefix.sh @@ -1,3 +1,3 @@ -[[ -z "$BASH_VERSION" ]] || shopt -q login_shell || return -[[ -z "$ZSH_VERSION" ]] || [[ -o login ]] || return +[[ -z "${BASH_VERSION+set}" ]] || shopt -q login_shell || return +[[ -z "${ZSH_VERSION+set}" ]] || [[ -o login ]] || return [[ "$-" == *i* ]] || return