Skip to contentSkip to conversation

gcc-cross.inc: Fix cross testing scripts to work with dash

PATCH Applied Khem Raj 2 participants 2 messages Mar 2, 2012 – Mar 4, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 gcc-cross.inc: Fix cross testing scripts to work with dash

dash does not like >& so be explicit and say 2>&1

---
 meta/recipes-devtools/gcc/gcc-cross.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/gcc/gcc-cross.inc +2 -2
index b16c57d..e7a5e41 100644
@@ -65,7 +65,7 @@ then
 	exit 1;
 fi
 
-echo "\$target" | grep "@" >& /dev/null
+echo "\$target" | grep "@" 2>&1 > /dev/null
 if [ "x\$?" = "x0" ]
 then
    user=\$(echo \$target | cut -d '@' -f 1)
@@ -73,7 +73,7 @@ then
 else
    user=\$USER
 fi
-ssh \$user@\$target date >& /dev/null
+ssh \$user@\$target date 2>&1 > /dev/null
 if [ "x\$?" != "x0" ]
 then
 	echo "Failed connecting to \$user@\$target it could be because"
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 6 lines · Khem Raj

dash does not like >& so be explicit and say 2>&1

---
 meta/recipes-devtools/gcc/gcc-cross.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard