From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WglP5-0005sn-0k for qemu-devel@nongnu.org; Sat, 03 May 2014 21:39:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WglP0-0007Qg-1g for qemu-devel@nongnu.org; Sat, 03 May 2014 21:39:42 -0400 Date: Sun, 4 May 2014 09:39:45 +0800 From: Fam Zheng Message-ID: <20140504013945.GC1124@T430.nay.redhat.com> References: <1399030869-23399-1-git-send-email-mjt@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1399030869-23399-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: Re: [Qemu-devel] [PATCH] configure: remove bashism List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Fri, 05/02 15:41, Michael Tokarev wrote: > Commit e26110cfc67d48 added a check for shacmd to create a hash > for modules. This check in configure is using bash construct &> > to redirect both stdout and stderr, whcih does fun things on some s/whcih/which > shells. Get rid of it, use standard redirection instead. > > Cc: Fam Zheng > Signed-off-by: Michael Tokarev > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 2fbec59..7442790 100755 > --- a/configure > +++ b/configure > @@ -2627,7 +2627,7 @@ done > if test "$modules" = yes; then > shacmd_probe="sha1sum sha1 shasum" > for c in $shacmd_probe; do > - if which $c &>/dev/null; then > + if which $c >/dev/null 2>&1; then > shacmd="$c" > break > fi > -- > 1.7.10.4 > Thanks. With the typo in commit message fixed, Reviewed-by: Fam Zheng