Difference between revisions of "Talk:Quoting"

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to navigation Jump to search
(Created page with 'The ANSI C escapes are a functionality of the 'echo' command. There's a special quoting mechanism that implements this functionality directly into the shell. Use that. 'echo' was…')
 
(critics)
 
Line 3: Line 3:
  
 
TheBonsai
 
TheBonsai
 +
 +
 +
"The special parameters * and @ have special meaning when in double quotes, but you can disable them with the backslash"
 +
 +
* and @ alone are not special (* is, unquoted, okay). They're only special as parameters: $@ and $*, the examples don't show this

Latest revision as of 04:43, 25 October 2010

The ANSI C escapes are a functionality of the 'echo' command. There's a special quoting mechanism that implements this functionality directly into the shell. Use that. 'echo' was, is and stays unreliable in its behaviour (that's also why POSIX specified the printf(1) command!)


TheBonsai


"The special parameters * and @ have special meaning when in double quotes, but you can disable them with the backslash"

  • and @ alone are not special (* is, unquoted, okay). They're only special as parameters: $@ and $*, the examples don't show this