From: Glenn Morris Date: Sat, 3 Feb 2018 01:58:34 +0000 (-0500) Subject: ; * autogen.sh (check_version): Improve previous change. X-Git-Tag: emacs-27.0.90~5733 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e0ad865d49dbcfcebaae9204c52e8632e1e2ddf;p=emacs.git ; * autogen.sh (check_version): Improve previous change. --- diff --git a/autogen.sh b/autogen.sh index 2e6b62db843..518e5dbe830 100755 --- a/autogen.sh +++ b/autogen.sh @@ -85,7 +85,7 @@ check_version () ## /bin/sh should always define the "command" builtin, but for ## some odd reason sometimes it does not on hydra.nixos.org. ## /bin/sh = "BusyBox v1.27.2", "built-in shell (ash)". ? - if command -v command > /dev/null; then + if command -v command > /dev/null 2>&1; then command -v $uprog > /dev/null || return 1 else $uprog --version > /dev/null 2>&1 || return 1