Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcalc bug
- X-seq: zsh-workers 19939
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: zcalc bug
- Date: Thu, 13 May 2004 18:47:00 +0100
- In-reply-to: "Matthias Kopfermann"'s message of "Thu, 13 May 2004 19:29:16 +0200." <20040513172916.GA13835@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Matthias Kopfermann wrote:
> one last thing that i am not sure about.
> I am quite sure it's not that easy but still a bit
> confusing:
>
> with LC_NUMERIC=de_DE zcalc
>
> i get floating point shown as something like
> `44,2' , because Germany has "," instead of ".".
>
> But i cannot use 3*4,2 to calculate.
> A mixture of both seems quite peculiar to me.
Yes, it's a nuisance: that's because zsh does it's own scanning.
It's not that easy to fix. Consider:
% print $(( 3,4 ))
4
The standard comma operator is specifically defined for math mode, and
whitespace is not significant.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author