mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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
This commit is contained in:
parent
efda170169
commit
544759df32
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user