From: Jess Robinson Date: Sat, 11 May 2013 13:37:39 +0000 (+0100) Subject: Correctly quote result from adb, otherwise multiline responses breal (eg signal_cmd) X-Git-Tag: upstream/5.20.0~614^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afae46ca68beaadf36a0c96b125c32bc27e5a83b;p=platform%2Fupstream%2Fperl.git Correctly quote result from adb, otherwise multiline responses breal (eg signal_cmd) --- diff --git a/hints/linux-android.sh b/hints/linux-android.sh index f5b602f..ae8be9d 100644 --- a/hints/linux-android.sh +++ b/hints/linux-android.sh @@ -70,7 +70,7 @@ foo=\`adb -s $targethost shell "sh -c '(cd \$cwd && \$env ; \$exe \$args) > $tar $from output.stdout result=\`cat output.stdout\` rm output.stdout -result=\`echo \$result | sed -e 's|\r||g'\` +result=\`echo "\$result" | sed -e 's|\r||g'\` foo=\`echo \$foo | sed -e 's|\r||g'\` # Also, adb doesn't exit with the commands exit code, like ssh does, double-grr echo "\$result"