Date: Sun, 21 Oct 2012 01:30:01 GMT From: Garrett Cooper <yanegomi@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/172862: sed improperly deals with escape chars Message-ID: <201210210130.q9L1U163056436@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/172862; it has been noted by GNATS. From: Garrett Cooper <yanegomi@gmail.com> To: johnandsara2@cox.net Cc: freebsd-gnats-submit@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210210130.q9L1U163056436>