1 |
On Thursday 17 May 2007, Bob Sanders <rsanders@×××.com> wrote about 'Re: |
2 |
[gentoo-amd64] problems with Gnucash config': |
3 |
> Tim Allingham, mused, then expounded: |
4 |
> > Unfortunately no such luck, good thought but pretty sure $(HOME) is a |
5 |
> > variable pointing to the home folder of the user who ran the command |
6 |
> > (similar to the way ~ works) |
7 |
> |
8 |
> Sorry. Still, $(HOME) looks a bit weird, but I've no clue what XML is |
9 |
> defining here. I tend to expect variables to be something lile - $HOME. |
10 |
> Nice, simple, long history of use. |
11 |
|
12 |
That's the same variable. Use braces disambiguates when you mean when the |
13 |
variable is substituted in odd places. For example "$NAME's clothing" is |
14 |
different from "${NAME}'s clothing" in perl because single quote is an old |
15 |
way of doing scope resolution. |
16 |
|
17 |
Even in bash, you can experience ambiguity. ${DIR_WITH_END_SLASH}subdir is |
18 |
very different from $DIR_WITH_END_SLASHsubdir. Also, $HOME (and ${HOME}) |
19 |
are actually older than the ~ notation and ~ not immediately followed by a |
20 |
valid login name is always just a shortcut for ${HOME}. |
21 |
|
22 |
-- |
23 |
Boyd Stephen Smith Jr. ,= ,-_-. =. |
24 |
bss03@××××××××××.net ((_/)o o(\_)) |
25 |
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' |
26 |
http://iguanasuicide.org/ \_/ |