diff -rupN sensible-utils.git/sensible-editor sensible-utils.git-new/sensible-editor --- sensible-utils.git/sensible-editor 2013-06-06 03:10:34.000000000 +0200 +++ sensible-utils.git-new/sensible-editor 2018-03-13 10:11:14.605976126 +0100 @@ -4,9 +4,9 @@ ret="$?" # Prevent recursive loops, where these values are set to this script p="$(which sensible-editor)" -[ "$(which $EDITOR || true)" = "$p" ] && EDITOR= -[ "$(which $VISUAL || true)" = "$p" ] && VISUAL= -[ "$(which $SELECTED_EDITOR || true)" = "$p" ] && SELECTED_EDITOR= +[ "$(which $EDITOR 2> /dev/null || true)" = "$p" ] && EDITOR= +[ "$(which $VISUAL 2> /dev/null || true)" = "$p" ] && VISUAL= +[ "$(which $SELECTED_EDITOR 2> /dev/null || true)" = "$p" ] && SELECTED_EDITOR= if [ -n "$VISUAL" ]; then ${VISUAL} "$@"