minor porting issue wrt versions of touch cmd.
authorNathan Scott <nathans@sgi.com>
Thu, 25 Jan 2001 01:28:18 +0000 (01:28 +0000)
committerNathan Scott <nathans@sgi.com>
Thu, 25 Jan 2001 01:28:18 +0000 (01:28 +0000)
005
common.rc

diff --git a/005 b/005
index 692035d04f827593fb417aeb2cda4c9802051ba8..7aae4b1d30d407b8616ae71e4f9328941e05e438 100755 (executable)
--- a/005
+++ b/005
@@ -58,6 +58,11 @@ _cleanup()
     rm -f symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9} symlink_self empty_file
 }
 
+_touch()
+{
+    touch $@ 2>&1 | sed -e "s/creating \`//g" -e "s/'//g"
+}
+
 # get standard environment, filters and checks
 . ./common.rc
 . ./common.filter
@@ -67,7 +72,7 @@ _cleanup()
 cd $TEST_DIR
 
 o=empty_file
-touch $o
+_touch $o
 for f in symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
 do
     ln -s $o $f
@@ -78,10 +83,10 @@ ln -s symlink_self symlink_self
 
 echo "*** touch deep symlinks"
 echo ""
-touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
+_touch symlink_{0,1,2,3}{0,1,2,3,4,5,6,7,8,9}
 echo ""
 echo "*** touch recusive symlinks"
 echo ""
-touch symlink_self
+_touch symlink_self
 
 exit
index a58759e428f8ad3ac623d048be03c7c76d7f05ae..0cca139f3096d6702ea166374ff5f064185ebb21 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -40,7 +40,7 @@ then
 fi
 
 # awk
-AWK_PROG=gawk
+AWK_PROG=awk
 
 # ps
 PS_HAVE_BSD=false