Gentoo Archives: gentoo-dev

From: Mike Doty <kingtaco@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: emul-linux-x86.eclass
Date: Wed, 14 Nov 2007 17:04:49
Message-Id: 473B29D2.5040901@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Torsten Rehn wrote:
5 > On Wednesday 14 November 2007 14:21, you wrote:
6 >> But why is it standard to quote other assignments like in DESCRIPTION and
7 >> HOMEPAGE then?
8 >
9 > When assigning literal values as in DESCRIPTION and HOMEPAGE, you have to
10 > quote. ${WORKDIR} is quoted on its assignment and therefore does not have to
11 > be quoted when assigning its value to another variable (${S}) by reference.
12 >
13 > [gentop][scel@~] > cat test.sh
14 > #!/bin/bash
15 > TEXT="A B"
16 > Q=${TEXT}
17 > echo ${TEXT}
18 > FAIL=DONT TRYTHISATHOME
19 > [gentop][scel@~] > ./test.sh
20 > A B
21 > ./test.sh: line 5: TRYTHISATHOME: command not found
22 >
23
24 I've quoted WORKDIR.
25
26 - --
27 =======================================================
28 Mike Doty kingtaco -at- gentoo.org
29 Gentoo Infrastructure
30 Gentoo/AMD64 Strategic Lead
31 GPG: E1A5 1C9C 93FE F430 C1D6 F2AF 806B A2E4 19F4 AE05
32 =======================================================
33 -----BEGIN PGP SIGNATURE-----
34 Version: GnuPG v2.0.7 (GNU/Linux)
35
36 iQCVAwUBRzsp0YBrouQZ9K4FAQIu6gQAhtpbkyViwi/zgWa6fgLvG0IfyaZSzeXO
37 YovtcSJpUTtW1IyfOEbrYWnY2Apyv5V2kp7E8szXNF+k3sAQt05N5i8VBjhZAFJP
38 HUWqVr7CxdAloYUPnWGTlXzWQWpc+6EWzqIGMAxk61VFnmvcWY5tSZSerUdS1ftS
39 ymyM0fmsDfk=
40 =4Abs
41 -----END PGP SIGNATURE-----
42 --
43 gentoo-dev@g.o mailing list