From owner-freebsd-hackers Thu Jul 8 17:17:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id 9767B155A8 for ; Thu, 8 Jul 1999 17:17:50 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id RAA10566; Thu, 8 Jul 1999 17:15:36 -0700 (PDT) Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id RAA10969; Thu, 8 Jul 1999 17:15:35 -0700 Received: from softweyr.com (dyn2.utah.xylan.com) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA25049; Thu, 8 Jul 99 17:15:31 PDT Message-Id: <37853F23.39FAAF6D@softweyr.com> Date: Thu, 08 Jul 1999 18:15:31 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Dag-Erling Smorgrav Cc: Assar Westerlund , Jamie Howard , freebsd-hackers@FreeBSD.ORG, tech-userlevel@netbsd.org, tech@openbsd.org Subject: Re: Replacement for grep(1) (part 2) References: <5laet8b2l8.fsf@assaris.sics.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: > > Assar Westerlund writes: > > Dag-Erling Smorgrav writes: > > > + realpat = grep_malloc(strlen(pattern) + sizeof("^(") > > > + + sizeof(")$") + 1); > > Why not just use asprintf? > > Doesn't matter, thsis code is gone in the latest version. You though > the linux 'kernel of the day' was bad; now you have the FreeBSD 'grep > of the minute' :) You guys need the infamous two-headed-editor from 'Dave-n-Val the two- headed programmer' at Weber State. It allows two programmers to edit the same file on two terminals; it displays the line of code the OTHER user's cursor is on in red and won't let your cursor on that line. ;^) -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://softweyr.com/ wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message