Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gcc-cross.inc: Fix cross testing scripts to work with dash
@ 2012-03-02 22:54 Khem Raj
  2012-03-04  4:27 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2012-03-02 22:54 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/gcc/gcc-cross.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index b16c57d..e7a5e41 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -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"
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gcc-cross.inc: Fix cross testing scripts to work with dash
  2012-03-02 22:54 [PATCH] gcc-cross.inc: Fix cross testing scripts to work with dash Khem Raj
@ 2012-03-04  4:27 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-03-04  4:27 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2012-03-02 at 14:54 -0800, Khem Raj wrote:
> dash does not like >& so be explicit and say 2>&1
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-devtools/gcc/gcc-cross.inc |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-04  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 22:54 [PATCH] gcc-cross.inc: Fix cross testing scripts to work with dash Khem Raj
2012-03-04  4:27 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox