Gentoo Archives: gentoo-dev

From: Torsten Rehn <scel@××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New eclass: emul-linux-x86.eclass
Date: Wed, 14 Nov 2007 13:57:43
Message-Id: 200711141453.56768.scel@xdap.org
In Reply to: Re: [gentoo-dev] New eclass: emul-linux-x86.eclass by "Marijn Schouten (hkBst)"
1 On Wednesday 14 November 2007 14:21, you wrote:
2 > But why is it standard to quote other assignments like in DESCRIPTION and
3 > HOMEPAGE then?
4
5 When assigning literal values as in DESCRIPTION and HOMEPAGE, you have to
6 quote. ${WORKDIR} is quoted on its assignment and therefore does not have to
7 be quoted when assigning its value to another variable (${S}) by reference.
8
9 [gentop][scel@~] > cat test.sh
10 #!/bin/bash
11 TEXT="A B"
12 Q=${TEXT}
13 echo ${TEXT}
14 FAIL=DONT TRYTHISATHOME
15 [gentop][scel@~] > ./test.sh
16 A B
17 ./test.sh: line 5: TRYTHISATHOME: command not found
18
19 --
20 Torsten Rehn <scel@××××.org>
21 Gentoo AMD64 Arch Tester
22 http://scel.info

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] New eclass: emul-linux-x86.eclass Ferris McCormick <fmccor@g.o>