gawk: regression with unary plus
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Feb 5 12:26:00 GMT 2018
On Feb 5 13:05, Houder wrote:
> On Sun, 04 Feb 2018 14:59:30, Steven Penny wrote:
> > Previously conversions could be triggered by either adding zero (+0), unary
> > plus (+) or unary minus (-) [1]:
> [snip]
>
> > However now conversion only happens with adding zero and unary minus:
> [snip]
>
> > Does anyone know where this change was mentioned or why it was done?
> >
> > [1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html
>
> For those who are interested:
>
> https://unix.stackexchange.com/questions/421904/regression-with-unary-plus
> (Regression with unary plus, by Steven Penny)
>
> As suggested by Stéphane Chazelas in his response, the change in behaviour is
> problably not intentional.
>
> Modifying (i.e. extend it) the '0p_unary_plus CASE' in interpret.h, restores
> the previous behaviour.
>
> Henri
I forwarded this to the gawk devel ML.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180205/38d7b17e/attachment.sig>
More information about the Cygwin
mailing list