From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 5 Jul 2011 08:58:04 -0400 To: 9fans@9fans.net Message-ID: <7e1b88d2eda348d9ea703e50b378a2e8@coraid.com> In-Reply-To: References: <201107050956.18175.dexen.devries@gmail.com> <6f23779eaf1a84b58aa569a370e413cb@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [9fans] grep (or perhaps regex(6)) question Topicbox-Message-UUID: facb1bda-ead6-11e9-9d60-3106f5b1d025 On Tue Jul 5 08:42:16 EDT 2011, rudolf.sykora@gmail.com wrote: > >> that is, p9p grep matches any line with regular expression in form of > >> $ANY_REGEX > >> > >> why is it so? > > > > this is a bug.  see the grammar in regexp(6). > > plan 9 grep does not have this problem. > > > > - erik > > I am sorry, but I don't understand. > What do you mean is wrong, Erik? there should be no match to the re $junk. it's impossible for there to be text after then end of line. plan 9 does this correctly, my version of p9p (which may differ by being out-of-date) does not. - erik