Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Posts
    19

    Unanswered: 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

  2. #2
    Join Date
    May 2007
    Location
    Milano, Italy
    Posts
    22
    Because you don't quote the variable:

    Code:
    echo "$VERSION"

  3. #3
    Join Date
    Nov 2006
    Posts
    19
    thanks! Sorry for a silly question, just getting use to this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •