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

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

Re: gawk3.0.6


From: Ulrich Drepper
Subject: Re: gawk3.0.6
Date: 23 Oct 2000 23:15:11 -0700
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)

Robert Katz <address@hidden> writes:

>     $ gawk '/*/' /dev/null
>     $ print $?
>     0
> 
> I believe the gawk line should fail.  The regular expression is
> missing an operand.   The '*' must modify something, but it doesn't.


No.  Read POSIX (or if you have, the Austin group standard draft).  If
* is used as the first character (possibly after a leading ^) it
looses the special meaning.  This is true for BREs and EREs.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



reply via email to

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