[Pm-utils] coding style $var vs. ${var}

Michael Biebl mbiebl at gmail.com
Tue Apr 22 15:26:16 PDT 2008


2008/4/22, Richard Hughes <hughsient at gmail.com>:
> On Tue, 2008-04-22 at 23:18 +0200, Michael Biebl wrote:
>  > ${var}
>
>  +1

The relevant documentation is
http://www.faqs.org/docs/bashman/bashref_29.html#SEC29

FWIW I prefer the shorter $var (less typing), and only use braces when
absolutely necessary (string manipulation, $var is followed by a
character that is not to be interpreted as part of the variable name).

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the Pm-utils mailing list