delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/02/05/07:06:01

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:to:subject:references
:in-reply-to:content-type; q=dns; s=default; b=kX0/XlTxfzRgT0j5F
DzuRCYE2z5z/d14hBfLYPln7YPwu0TyfuwQBAXIogDAaZui857J01S4YOZWHWcRn
qIlb1KYmcCIg0EN6MxHM36eQKflUdL9RGIVdB255BAc3seE5IVH+k8vRNtcwmzOV
TbMoBOw8omomD0lyrNdt3FfHT0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:to:subject:references
:in-reply-to:content-type; s=default; bh=5ViqdQf9ph0a2Dq6THhxASc
jYIs=; b=j0TfgZqmlsi3gimpWVvj2+y4g9mwXHDbwTatfx6xAGEMmiyy5yynlav
p7/DiPVk3VTASwhCZ0Wu0z52s/Im7/EmQoIVKUCE4bbCGal+B4hmiZVEW3Pi1BOn
h0jOzxg6DCa8mPJJCp0hpMKNx8dq2eUwv+1bbdV32KTsGhH5YIGk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=CASE, H*F:D*nl, his
X-HELO: lb3-smtp-cloud7.xs4all.net
Date: Mon, 05 Feb 2018 13:05:45 +0100
Message-ID: <449cd6d95f6ea4e946ea9f5d350eafab@smtp-cloud7.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: Re: gawk: regression with unary plus
References: <5a779052 DOT 964c9d0a DOT b1d8f DOT e4da AT mx DOT google DOT com>
In-Reply-to: <5a779052.964c9d0a.b1d8f.e4da@mx.google.com>
User-Agent: mua.awk 0.99
X-CMAE-Envelope: MS4wfH57gQEUodXoetLzZ60DoDXDfJQUW1oGIVLPT9RJgRX551/le86+PHcfQWFwqJArcKFZCuJIizAL1hky33LsDlPYgKfp2eR8mVP0VT3sP8QeeII49weD xn46CujE4AtSPSUAfF2Je0WQR/8ficA7mcIs9N5LJ4ZTlQKunNPmOVyWhKy/GMjxSH7rj5Y+5wFKnA==

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


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019