From 7f54723d9948914dd56f55096fa79e56a3242d8f Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 29 May 2003 08:33:02 -0500 Subject: [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. --- tools/misc/h5redeploy.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/misc/h5redeploy.in b/tools/misc/h5redeploy.in index 9423729..9e06de6 100755 --- a/tools/misc/h5redeploy.in +++ b/tools/misc/h5redeploy.in @@ -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 -- cgit v0.12