[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
pattern
> > space, followed by zero or more characters, followed by the end of
pattern
> > space -- so the end of pattern space. (The current version BTW is
4.0.8).
>
> 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.
Paolo