James Neave wrote:
Blimey, and I always had a soft spot for tiddles..
Right then, you need to replace those "[" and "]" with "(" and ")" respectively.
Although looking at mine, I have (( and )). Not sure if this is necessary. I shall follow the "it's not broken" rule.
The $(( ... )) is necessary, and indicates mathmatical expansion, while single parens $( ... ) are used for command substitution (ie: the same as backticks, or `...`, the enclosed command is run and it's output is substituted for the expression).
<example> # echo $((1+1)) 2
# echo $(1+1) 1+1: not found </example>
-- Charles Steinkuehler [EMAIL PROTECTED]
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
