]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
clean up
authorJim Meyering <jim@meyering.net>
Fri, 7 May 1999 18:48:45 +0000 (18:48 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 7 May 1999 18:48:45 +0000 (18:48 +0000)
tests/touch/empty-file

index 3089ce4de61e891b3d906a27bc40de4e846db737..f6a8f1cf171d1f8ef56b0f7ff7ccdd8546627ff4 100755 (executable)
@@ -4,12 +4,9 @@
 # fails to work on SunOS 4.1.3 with `most of the recommended patches' when
 # the empty file is on an NFS-mounted 4.2 volume.
 
-: ${RM=rm}
-: ${TOUCH=touch}
-
 if test "$VERBOSE" = yes; then
   set -x
-  $TOUCH --version
+  touch --version
 fi
 
 DEFAULT_SLEEP_SECONDS=2
@@ -25,7 +22,7 @@ fail=0
 framework_failure=0
 
 for d in $TOUCH_DIR_LIST; do
-  $RM -rf $d/a $d/b
+  rm -rf $d/a $d/b
   > $d/a || framework_failure=1
   test -f $d/a || framework_failure=1
   > $d/b || framework_failure=1
@@ -39,18 +36,18 @@ fi
 
 sleep $SLEEP_SECONDS
 for d in $TOUCH_DIR_LIST; do
-  $TOUCH $d/a || fail=1
-  set x `$LS -t $d/a $d/b`
+  touch $d/a || fail=1
+  set x `ls -t $d/a $d/b`
   test "$*" = "x $d/a $d/b" || fail=1
 done
 
 sleep $SLEEP_SECONDS
 for d in $TOUCH_DIR_LIST; do
-  $TOUCH $d/b
-  set x `$LS -t $d/a $d/b`
+  touch $d/b
+  set x `ls -t $d/a $d/b`
   test "$*" = "x $d/b $d/a" || fail=1
 
-  $RM -rf $d/a $d/b
+  rm -rf $d/a $d/b
 done
 
 if test $fail != 0; then