bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [gawk] Possible Bug


From: Phillip . Long
Subject: RE: [gawk] Possible Bug
Date: Mon, 15 Aug 2005 10:34:02 -0500

Stepan:

I tried out the commands, and this is the result:

/work> LC_ALL=C gawk '{gsub(/[\x00-\x1f\x7e-\xff]/,"*");print}' x.x  
gawk: fatal: Invalid range end: /[/
/work> 
/work> gawk '/[\x00-\x1f\x7e-\xff]/' x.x 
gawk: fatal: Invalid range end: /[/
/work> 
/work> gawk '{gsub("[\x00-\x1f\x7e-\xff]","*");print}' x.x 
gawk: (FILENAME=x.x FNR=1) fatal: Invalid range end: /[/
/work> 

I will try 3.1.5 and see what happens.  Thanks for the help, and I'll keep
you posted.

                                        Thx, Phil Long


 

-----Original Message-----
From: Stepan Kasal [mailto:address@hidden 
Sent: Monday, August 15, 2005 6:21 AM
To: Long, Phillip GOSS
Cc: address@hidden; address@hidden
Subject: Re: [gawk] Possible Bug

Hi,

On Fri, Aug 12, 2005 at 08:31:34PM -0500, address@hidden
wrote:
> CYGWIN port is 3.1.4.  [...]
>     gawk '{gsub(/[\x00-\x1f\x7e-\xff]/,"*");print}' x.x
>     -|gawk: fatal: Invalid range end: /[/

I wasn't able to reproduce the problem on my GNU/Linux.

Perhaps this is a locale issue, could you try
        LC_ALL=C gawk '{gsub(/[\x00-\x1f\x7e-\xff]/,"*");print}' x.x ?

Another question: does the following end with the same error?
        gawk '/[\x00-\x1f\x7e-\xff]/' x.x

And what about this
        gawk '{gsub("[\x00-\x1f\x7e-\xff]","*");print}' x.x (quotes instead
of slashes)?

Arnold has just released gawk 3.1.5, and it's already available on cygwin
site; could you please try this?

I'm just guessing here, but perhaps your answers to the above questions will
help Arnold to identify the problem.

A lot has happened since 1997, when 3.0.3 was released.
In particular, the regex engine was replaced by a totally new code.

HTH,
        Stepan


****************************************************************************
**************

****************************************************************************
**************

      Goss ... Innovation for Business

NOTICE:  This e-mail and any attachment(s) may contain confidential and
proprietary information of Goss International Corporation and/or its
subsidiaries and may be legally privileged. This e-mail is intended solely
for the addressee. If you are not the addressee, dissemination, copying or
other use of this e-mail or any of its content is strictly prohibited and
may be unlawful.  If you are not the intended recipient please inform the
sender immediately and destroy the e-mail and any copies.  All liability for
viruses is excluded to the fullest extent permitted by law.  Any views
expressed in this message are those of the individual sender.  No contract
may be construed by this e-mail.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]