If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Assigning string to var and then echo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-07, 15:34
brdholman brdholman is offline
Registered User
 
Join Date: Nov 2006
Posts: 19
Assigning string to var and then echo

Why do these 2 lines first output the contents of the current directory and then the string assigned to VERSION?

VERSION=' * Exstream Dialogue Version 5.0.061'
echo $VERSION
Reply With Quote
  #2 (permalink)  
Old 09-21-07, 04:33
radoulov radoulov is offline
Registered User
 
Join Date: May 2007
Location: Milano, Italy
Posts: 22
Because you don't quote the variable:

Code:
echo "$VERSION"
Reply With Quote
  #3 (permalink)  
Old 09-21-07, 08:30
brdholman brdholman is offline
Registered User
 
Join Date: Nov 2006
Posts: 19
thanks! Sorry for a silly question, just getting use to this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On