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

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

Re: Sed or regex bug?


From: Stepan Kasal
Subject: Re: Sed or regex bug?
Date: Mon, 7 Oct 2002 10:25:21 +0200
User-agent: Mutt/1.2.5.1i

Hi,

On Sat, Oct 05, 2002 at 02:30:55AM -0700, Vartan Stepanian wrote:
>  echo "hi"|sed -e 's/[\(a\)\(b\)]//'

> Now assume the following for "a": 
> \(\(\(\(\([0-9]\+\)\)\)\?x\(\([\^]\([0-9]\+\)\)\)\?\)\)
> it parses by itself.

> Now why can't I substitute a and b into this
> expression:  [\(a\)\(b\)]

between brackets, ie. `[' and `]', there have to be a list of characters.
Thus even your first example seems unreasonable.

So this is not a bug but misunderstanding on your side.
Consult your man pages.

HTH,
        Stepan Kasal




reply via email to

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