Skip to contentSkip to conversation

common/rc: dd(): Correctly redirect stderr to stdout.

PATCH New Ari Sundholm 1 participant 1 message Sep 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 common/rc: dd(): Correctly redirect stderr to stdout.

From: Ari Sundholm <[email protected]>

---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/rc +1 -1
index a5a0d29..88a9d5b 100644
@@ -44,7 +44,7 @@ dd()
 {
    if [ "$HOSTOS" == "Linux" ]
    then	
-	command dd --help | grep noxfer > /dev/null 2>&1
+	command dd --help 2>&1 | grep noxfer >/dev/null
 	
 	if [ "$?" -eq 0 ]
 	    then
Signature · 1 line
2.1.0