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 |