[dconf] build: "&>" is a advanced shell extension. Use > and 2>&1 instead.
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] build: "&>" is a advanced shell extension. Use > and 2>&1 instead.
- Date: Tue, 22 Jan 2013 17:03:45 +0000 (UTC)
commit 7b2bd35e5c5876e2c6d379321f092ae504b66077
Author: Alban Browaeys <prahal yahoo com>
Date: Mon Jan 21 10:55:58 2013 +0100
build: "&>" is a advanced shell extension. Use > and 2>&1 instead.
dconf autogen.sh uses /bin/sh as shebang which on debian bind to dash.
Dash has no support for "&>" redirection (both stdout and stderr). Thus
it interpret the command as detach and redirect stdout.
Switch to explicitely redirect stdout and stderr :
"> /dev/null 2>&1" for which "&>" is a shorthand to fix the build
failure.
https://bugzilla.gnome.org/show_bug.cgi?id=692186
autogen.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 3973ddf..364c213 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,7 +8,7 @@ test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
-if automake-1.11 --version &> /dev/null; then
+if automake-1.11 --version > /dev/null 2>&1; then
automake_suffix='-1.11'
else
automake_suffix=''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]