]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
set envvars via "env" to avoid spurious set -x output from bad shells
authorJim Meyering <meyering@redhat.com>
Wed, 13 Aug 2008 08:40:58 +0000 (10:40 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 14 Aug 2008 21:08:03 +0000 (23:08 +0200)
* tests/dd/misc: Set LC_ALL=C via env.
* tests/cp/thru-dangling: Set POSIXLY_CORRECT via env.
This is necessary at least on AIX 5.3.
Reported by Jeph Cowan and Ralf Wildenhues.  Details here:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14235/focus=14257

tests/cp/thru-dangling
tests/dd/misc

index 71b41cd5d9ab5c89d64f41b660cd75e5cbc07144..7caeed33b4b3c7bdde05af12bc506dc969c258e2 100755 (executable)
@@ -38,7 +38,7 @@ compare err exp-err || fail=1
 test -f no-such && fail=1
 
 # But you can set POSIXLY_CORRECT to get the historical behavior.
-POSIXLY_CORRECT=1 cp f dangle > out 2>&1 || fail=1
+env POSIXLY_CORRECT=1 cp f dangle > out 2>&1 || fail=1
 cat no-such >> out || fail=1
 
 compare out exp || fail=1
index e550d6a523f1a15f271cf0d951cdbc6e414c75bd..04318f08a052d5e537372ba66959c7901123e8fd 100755 (executable)
@@ -89,7 +89,7 @@ outbytes=`echo x | dd bs=3 ibs=10 obs=10 conv=sync 2>/dev/null | wc -c`
 test "$outbytes" -eq 3 || fail=1
 
 (echo a; sleep .1; echo b) \
-  | LC_ALL=C dd bs=4 status=noxfer iflag=fullblock >out 2>err || fail=1
+  | env LC_ALL=C dd bs=4 status=noxfer iflag=fullblock >out 2>err || fail=1
 printf 'a\nb\n' > out_ok || framework_failure
 echo "1+0 records in
 1+0 records out" > err_ok || framework_failure