summaryrefslogtreecommitdiff
path: root/005
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2001-01-25 01:28:18 +0000
committerNathan Scott <nathans@sgi.com>2001-01-25 01:28:18 +0000
commit0f54fae3dd15fa4dd7a8d9355062457b24149311 (patch)
tree1f29a471bf0a42ed89f68dde2b0bd6f457f06545 /005
parent90bcf583901e14015b16194f4798de010e2b6560 (diff)
minor porting issue wrt versions of touch cmd.
Diffstat (limited to '005')
-rwxr-xr-x00511
1 files changed, 8 insertions, 3 deletions
diff --git a/005 b/005
index 692035d0..7aae4b1d 100755
--- 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