From: Jim Meyering Date: Sat, 15 Aug 1998 03:04:06 +0000 (+0000) Subject: Avoid bug in Ultrix4.3a /bin/sh, X-Git-Tag: FILEUTILS-3_16u~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d4fc8016ca7a7b2525ccfccd6e8ee5710277e1;p=thirdparty%2Fcoreutils.git Avoid bug in Ultrix4.3a /bin/sh, not initializing output redirection of : command. --- diff --git a/tests/mv/backup-is-src b/tests/mv/backup-is-src index 6c1429eafd..de1422f808 100755 --- a/tests/mv/backup-is-src +++ b/tests/mv/backup-is-src @@ -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' diff --git a/tests/rm/i-1 b/tests/rm/i-1 index f16aaf2edd..4020132c5b 100755 --- a/tests/rm/i-1 +++ b/tests/rm/i-1 @@ -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