bin/172862: sed improperly deals with escape chars
Garrett Cooper
yanegomi at gmail.com
Sun Oct 21 01:30:01 UTC 2012
The following reply was made to PR bin/172862; it has been noted by GNATS.
From: Garrett Cooper <yanegomi at gmail.com>
To: johnandsara2 at cox.net
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: bin/172862: sed improperly deals with escape chars
Date: Sat, 20 Oct 2012 18:23:26 -0700
On Sat, Oct 20, 2012 at 5:37 PM, John D. Hendrickson and Sara Darnell
<johnandsara2 at cox.net> wrote:
...
> What I see is your using [] wrong. '\t' doesn't go inside it for many WELL
> documented reasons.
Cite documentation please and explain where I got it wrong.
> Furthermore sed mathes '\t' without [] so why bother filing a bug against []
> ?
The point was to match one or the other as this was something that
someone else wrote that's a valid regular expression in bracket
notation that I executed on both FreeBSD and Linux. '\040' != '\011'
and as such a space shouldn't be a drop in replacement for a
horizontal tab. The PR was filed to note the discrepancy.
Thanks,
-Garrett
More information about the freebsd-bugs
mailing list