16 lines
795 B
Diff
16 lines
795 B
Diff
diff -rupN sensible-utils-0.0.9/sensible-editor sensible-utils-0.0.9-new/sensible-editor
|
|
--- sensible-utils-0.0.9/sensible-editor 2013-06-06 03:10:34.000000000 +0200
|
|
+++ sensible-utils-0.0.9-new/sensible-editor 2017-07-14 11:47:14.973126644 +0200
|
|
@@ -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} "$@"
|