[Top][All Lists]

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

Re: sed segfaults

From: Paolo Bonzini
Subject: Re: sed segfaults
Date: Mon, 10 Nov 2003 19:23:12 +0100

> You say 's/\'.*\'/foo/' which wouldn't be correct under bash.

Yes, you're right, I meant to use double quotes.

> > The correct behavior is to output fooxxx. \'.*\' means the end of
> > space, followed by zero or more characters, followed by the end of
> > space -- so the end of pattern space.  (The current version BTW is
> I've missed that \' has a defined meaning, thank you for telling me.
> So the correct output is "xxxfoo", right?
> And that's what the newest regex does.

No, fooxxx if I am not missing anything obvious.  It matches the *end* of
pattern space.


reply via email to

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