From owner-freebsd-hackers Wed Jul 7 12:36:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from majordomo2.umd.edu (majordomo2.umd.edu [128.8.10.7]) by hub.freebsd.org (Postfix) with ESMTP id EEB1F15027 for ; Wed, 7 Jul 1999 12:35:42 -0700 (PDT) (envelope-from howardjp@wam.umd.edu) Received: from rac10.wam.umd.edu (root@rac10.wam.umd.edu [128.8.10.150]) by majordomo2.umd.edu (8.9.3/8.9.3) with ESMTP id PAA27048; Wed, 7 Jul 1999 15:35:22 -0400 (EDT) Received: from rac10.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac10.wam.umd.edu (8.9.3/8.9.3) with SMTP id PAA11909; Wed, 7 Jul 1999 15:35:21 -0400 (EDT) Received: from localhost by rac10.wam.umd.edu (8.9.3/8.9.3) with ESMTP id PAA11902; Wed, 7 Jul 1999 15:35:19 -0400 (EDT) X-Authentication-Warning: rac10.wam.umd.edu: howardjp owned process doing -bs Date: Wed, 7 Jul 1999 15:35:19 -0400 (EDT) From: Jamie Howard To: Dag-Erling Smorgrav Cc: freebsd-hackers@FreeBSD.ORG, tech-userlevel@netbsd.org, tech@openbsd.org Subject: Re: Replacement for grep(1) (part 2) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 7 Jul 1999, Dag-Erling Smorgrav wrote: > BTW, I assume you've read this: > > Of course, my copy of the printout is all marked up. :) > I see you switched to using extended regexps by default, and made -E a > no-op; this breaks the ports collection, so I changed it back. The FreeBSD, NetBSD, and OpenBSD manpage for grep says this: Grep understands two different versions of regular expression syntax: ``basic'' and ``extended.'' In GNU grep, there is no difference in available functionality using either syntax. Is this inaccurate or am I reading it wrong? > Sort your switch cases. > Don't use err() indiscriminately after a malloc() failure; malloc() > doesn't set errno. Shouldn't malloc be fixed? :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message