On Fri, 2005-04-22 at 13:46 -0400, Christian Pearce wrote: > $(expr) and ${word} is valid shell how do you differentiate? > > bash-2.05b$ test=$(echo test) > bash-2.05b$ echo $test > test > bash-2.05b$ test=${test} > bash-2.05b$ echo $test > test > bash-2.05b$ test=${test1} > bash-2.05b$ echo $test
The same way Make does, by requiring you escape shell variables in strings--it would remove the ambiguity and permit more useful error messages and syntax checking. Wil -- Wil Cooley [EMAIL PROTECTED] Naked Ape Consulting http://nakedape.cc * * * * Linux, UNIX, Networking and Security Solutions * * * *
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine