diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-09-06 05:27:36 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-09-06 05:27:36 (GMT) |
commit | 6012348fd1f30c6da3bda11f49a1226bed8e17c1 (patch) | |
tree | bc3419eeb4ab791ac061026a78c67abeccf3dfe2 /bin | |
parent | bdc85259c7969ec3c4561fa48f818b2bf393867a (diff) | |
download | hdf5-6012348fd1f30c6da3bda11f49a1226bed8e17c1.zip hdf5-6012348fd1f30c6da3bda11f49a1226bed8e17c1.tar.gz hdf5-6012348fd1f30c6da3bda11f49a1226bed8e17c1.tar.bz2 |
[svn-r4427] 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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/runtest | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/runtest b/bin/runtest index ec8733f..0407a0f 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. |