From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <7e1b88d2eda348d9ea703e50b378a2e8@coraid.com> References: <201107050956.18175.dexen.devries@gmail.com> <6f23779eaf1a84b58aa569a370e413cb@ladd.quanstro.net> <7e1b88d2eda348d9ea703e50b378a2e8@coraid.com> Date: Tue, 5 Jul 2011 16:01:23 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] grep (or perhaps regex(6)) question Topicbox-Message-UUID: fad4e11a-ead6-11e9-9d60-3106f5b1d025 > there should be no match to the re $junk. > it's impossible for there to be text after then > end of line. 1) from the regexp grammer, $junk is a valid regexp 2) grep checks input line-by-line 3) the answer to a question whether a *line* complies with '$whatever' is --- I believe --- undefined. (It definitely should match '$'; however comparing with '$whatever' gets us outside the definitions). Ruda