]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid bug in Ultrix4.3a /bin/sh,
authorJim Meyering <jim@meyering.net>
Sat, 15 Aug 1998 03:04:06 +0000 (03:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Aug 1998 03:04:06 +0000 (03:04 +0000)
not initializing output redirection of : command.

tests/mv/backup-is-src
tests/rm/i-1

index 6c1429eafdefd5b76a1f165c98d5541edac161de..de1422f808538be6f763f5723487a38d1479338e 100755 (executable)
@@ -20,8 +20,8 @@ a2="$other_partition_tmpdir/a~"
 
 framework_failure=0
 $RM -f $a $a2 || framework_failure=1
-: > $a || framework_failure=1
-echo a > $a2 || framework_failure=1
+echo a > $a || framework_failure=1
+echo a2 > $a2 || framework_failure=1
 
 if test $framework_failure = 1; then
   echo 'failure in testing framework'
index f16aaf2edd958f8e626e0cd9a4d789a98336b5dd..4020132c5bf5d57ca61dd5af7d786826c98ebf43 100755 (executable)
@@ -15,7 +15,7 @@ tmp=$RM_TMPDIR/t-rm.$$
 
 test_failure=0
 mkdir $tmp || test_failure=1
-: > $tmp/a || test_failure=1
+echo > $tmp/a || test_failure=1
 test -f $tmp/a || test_failure=1
 
 if test $test_failure = 1; then