1 |
On Tue, 2007-10-02 at 19:29 -0600, Ryan Hill wrote: |
2 |
> Steve Long wrote: |
3 |
> > IMO the real reason you have such an issue with quoting is the redundant |
4 |
> > braces which are Gentoo house style; too many newbie scripters think that |
5 |
> > cd ${S} is safe when it should be cd "${S}" or more simply cd "$S". I don't |
6 |
> > buy the legibility argument since most people use syntax highlighting. It |
7 |
> > just sets the parser up for a non-event (yes I am *that* fussy about |
8 |
> > cycles.) My suspicion is that it came from echo "${RD}message$NO" |
9 |
> |
10 |
> Or because the unbraced case looks like ass. |
11 |
|
12 |
You also need braces for ${#FOO} and other such parameter expansion. |
13 |
|
14 |
Thanks |
15 |
|
16 |
Roy |
17 |
|
18 |
-- |
19 |
gentoo-dev@g.o mailing list |