"Eloy A. Paris" wrote: > Witold Grabysz <[EMAIL PROTECTED]> wrote: > > : the following phrase doesn't work in bash: > : ((ls);(ls)) > : Why? Is it not allowed by the shell syntax or there is a bug in it? > > Yup, you're right; it's probably a bug. This does work: > > ( (ls);(ls)) > > Try changing the definition of the helper in Netscape to follow the > above syntax.
No, there's no bug in bash. ((<expr>)) indicates that arithmetic operations should be performed a la let x=i+1. Try this let i=5; while ((i>0)); echo $i; let i-=1; done The fix is right how ever; you need to disambiguate the expression. Stephen --- "Normality is a statistical illusion." -- me -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .