On Wednesday 14 November 2007 14:21, you wrote:
> But why is it standard to quote other assignments like in DESCRIPTION and
> HOMEPAGE then?

When assigning literal values as in DESCRIPTION and HOMEPAGE, you have to 
quote. ${WORKDIR} is quoted on its assignment and therefore does not have to 
be quoted when assigning its value to another variable (${S}) by reference.

[EMAIL PROTECTED] > cat test.sh
#!/bin/bash
TEXT="A B"
Q=${TEXT}
echo ${TEXT}
FAIL=DONT TRYTHISATHOME
[EMAIL PROTECTED] > ./test.sh
A B
./test.sh: line 5: TRYTHISATHOME: command not found

-- 
Torsten Rehn <[EMAIL PROTECTED]>
Gentoo AMD64 Arch Tester
http://scel.info

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to