The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Echo behavior
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-10-2009
Saurabh78 Saurabh78 is offline
Registered User
  
 

Join Date: Jun 2004
Posts: 40
Echo behavior

Echo is removing extra blank spaces. See the command.

export INSTALLDIR=”First Second /Two Space”
echo $INSTALLDIR
out put: First Second /Two Space
Here only on blnak space is present while with command

Echo “$INSTALLDIR”
Out put: ”First Second /Two Space”
It’s correct output with two blank spaces.
Any one can pls. explains why echo is behaving like this.