From: ellson Date: Mon, 17 May 2010 21:39:22 +0000 (+0000) Subject: remove bashism. X-Git-Tag: LAST_LIBGRAPH~32^2~1330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6f7a9436ae4df17dc2c746f00486dff3ccdbba8;p=graphviz remove bashism. David Claughton --- diff --git a/plugin/xlib/vimdot.sh b/plugin/xlib/vimdot.sh index fa1b29d3c..3c3f6da3f 100755 --- a/plugin/xlib/vimdot.sh +++ b/plugin/xlib/vimdot.sh @@ -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