]> granicus.if.org Git - graphviz/commitdiff
remove bashism.
authorellson <devnull@localhost>
Mon, 17 May 2010 21:39:22 +0000 (21:39 +0000)
committerellson <devnull@localhost>
Mon, 17 May 2010 21:39:22 +0000 (21:39 +0000)
David Claughton <dave@eclecticdave.com>

plugin/xlib/vimdot.sh

index fa1b29d3ce4065cc71f4eb3f1f97ba2e67f7290f..3c3f6da3f67e1b4a2aadf34bcc3e05def4326855 100755 (executable)
@@ -5,7 +5,7 @@ error() { echo "$0: $*" >&2; exit 1; }
 
 for prog in gvim vim ""; do
        if test -x /usr/bin/$prog; then break; fi
-       if which $prog >&/dev/null; then break; fi
+       if which $prog >/dev/null 2>&1; then break; fi
 done
 
 if test -z "$prog"; then error "the editor not found"; fi