[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-pm-utils
Subject: Re: [Pm-utils] coding style $var vs. ${var}
From: "Michael Biebl" <mbiebl () gmail ! com>
Date: 2008-04-22 22:26:16
Message-ID: aa76cdac0804221526n7ab0cbear5ca4fef41cc85abb () mail ! gmail ! com
[Download RAW message or body]
2008/4/22, Richard Hughes <hughsient@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?
_______________________________________________
Pm-utils mailing list
Pm-utils@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic