Skip to contentSkip to conversation

test_children_cleanup: fix redirection issue in shell

LTP Li Wang 1 participant 1 message Feb 13, 2022

lore
Share & tools
lore

Li Wang

author
#0 lore raw
---
 lib/newlib_tests/test_children_cleanup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/newlib_tests/test_children_cleanup.sh +1 -1
index 2a84c3d85..4b4e8b2f0 100755
@@ -3,7 +3,7 @@
 # Copyright (c) 2022 SUSE LLC <[email protected]>
 
 TMPFILE="/tmp/ltp_children_cleanup_$$.log"
-./test_children_cleanup &>"$TMPFILE"
+./test_children_cleanup 1>$TMPFILE 2>&1
 CHILD_PID=`sed -n 's/^.*Forked child \([0-9]*\)$/\1/p' "$TMPFILE"`
 rm "$TMPFILE"
 
Signature · 5 lines
2.31.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp