Gentoo Archives: gentoo-dev

From: Drake Wyrm <wyrm@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] variable quoting, setting optional variables to "", and depending on virtual/libc
Date: Sat, 17 Jun 2006 10:43:03
Message-Id: 20060617103706.GA23868@phaenix.haell.com
In Reply to: Re: [gentoo-dev] variable quoting, setting optional variables to "", and depending on virtual/libc by "Harald van Dijk"
1 Harald van D??k <truedfx@g.o> wrote:
2 > On Fri, Jun 16, 2006 at 11:31:27PM -0700, Drake Wyrm wrote:
3 > > Harald van D??k <truedfx@g.o> wrote:
4 > > > Any is fine, there is no word splitting or wildcard expansion in
5 > > > shell variable assignments.
6 > >
7 > > $ foo="bar * baz"
8 > > $ wombat=$foo
9 > > $ echo $wombat
10 > > bar somedir somefile baz
11 >
12 > The wildcard expansion is not during the variable assignment, it's
13 > during the expansion of $wombat. Just try echo "$wombat" instead.
14
15 Right, you are! I do apologize.
16
17 --
18 Major premise: You can't handle the truth.
19 Minor premise: The truth is out there.
20 Conclusion: You can't handle what is out there.