summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-09-06 05:27:40 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-09-06 05:27:40 (GMT)
commit544759df3281bd420e22bdc7ca3cdb136217b620 (patch)
tree2dd0af8a008914217e3f73ef1a8d02dd618a99e0
parentefda170169f7d61ab076ed49125282203bbcaa90 (diff)
downloadhdf5-544759df3281bd420e22bdc7ca3cdb136217b620.zip
hdf5-544759df3281bd420e22bdc7ca3cdb136217b620.tar.gz
hdf5-544759df3281bd420e22bdc7ca3cdb136217b620.tar.bz2
[svn-r4428] Purpose:
Bug fix Description: The previous coding using sed was not portable for all Unix systems. Much easier to use 'cut' to parse the strings. Platforms tested: eirene
-rwxr-xr-xbin/runtest6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/runtest b/bin/runtest
index 9531e98..6019d9d 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -371,7 +371,11 @@ SNAPTEST_CONFIG_PARSE()
{
while read x y ; do
# Scan for entry for this weekday.
- x=`echo $x | sed -e s%^$WEEKDAY/%%`
+ xd=`echo $x | cut -f1 -d/`
+ if [ "$xd" = ${WEEKDAY} ]; then
+ # strip away the weekday/ part.
+ x=`echo $x | cut -f2 -d/`
+ fi
case "$x" in
'#'*)
# comment. Continue.