The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-04-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,124
I missed out the word "not". But reading it back, the grammer is pretty rubbish too.

Simpler would be
Quote:
${t}ea is not the same as $tea
Should have quit while I was ahead.

I should use:
#!/bin/english

I know what I was trying to say, here, but just made a complete mess of it...
Quote:
If you set a variable called "tea" to 100, then ${t}ea and $tea would not mean the same thing, but if your intention was to add ea to $t, then you need the { }.
So I removed it from the original post.

Last edited by scottn; 07-04-2009 at 01:47 PM..