mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r6922] Purpose:
bug fix Description: Not all echo commands honors the '-n' option. In those cases, the output look weired though recognizable. Solution: Eliminated the use of -n option. A better fix would be having configure to set the proper use of the echo command. Platforms tested: only on sasn100 (a sun frontend of Janus). No committest since this is just a simple shell script change.
This commit is contained in:
parent
591902a623
commit
7f54723d99
@ -50,9 +50,8 @@ show_action()
|
||||
echo "Update the following tools because they are now installed at a new directory"
|
||||
for t in $foundtools; do
|
||||
echo "${t}:"
|
||||
echo -n " current setting="
|
||||
sed -e "/^prefix=/s/prefix=//p" -e d $t
|
||||
echo " new setting="\""$prefix"\"
|
||||
echo " current setting=`sed -e '/^prefix=/s/prefix=//p' -e d $t`"
|
||||
echo " new setting="\""$prefix"\"
|
||||
done
|
||||
}
|
||||
|
||||
@ -126,7 +125,7 @@ fi
|
||||
show_action
|
||||
# Ask confirmation unless fmode is on
|
||||
if [ x-$fmode = x- ]; then
|
||||
echo -n "Continue? (yes/no)"
|
||||
echo "Continue? (yes/no)"
|
||||
read ansx
|
||||
ans=`echo $ansx | tr "[A-Z]" "[a-z]"`
|
||||
if [ x-$ans != x-yes ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user