Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: arithmetic operator precedence



On 2008-06-19 14:29:03 +0200, Richard Hartmann wrote:
> On Thu, Jun 19, 2008 at 11:58, Peter Stephenson <pws@xxxxxxx> wrote:
> > That seems a good idea in any case.
> 
> Can you add that this is done to remain both backwards and shell-
> compatible and that this is not what a 'real' language/calculator
> will do?

This isn't shell-compatible. AFAIK, only bash and ksh93 support **.

> Perhaps even include a reference to the POSIX argument.

There's no POSIX argument. ** is just an extension.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author