From owner-cvs-all Fri Jun 14 10:14:18 2002 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 7023637B400; Fri, 14 Jun 2002 10:14:10 -0700 (PDT) Date: Fri, 14 Jun 2002 10:14:10 -0700 From: Juli Mallett To: Akinori MUSHA Cc: Trevor Johnson , Mikhail Teterin , Pete Fritchman , portmgr@freebsd.org, Maxim Sobolev , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: ports/Mk bsd.port.mk Message-ID: <20020614101409.A88549@FreeBSD.ORG> References: <200206141102.50292.mi+mx@aldan.algebra.com> <20020614113752.K11520-100000@blues.jpj.net> <86k7p16c4q.wl@archon.local.idaemons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <86k7p16c4q.wl@archon.local.idaemons.org>; from knu@iDaemons.org on Sat, Jun 15, 2002 at 01:47:17AM +0900 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , X-Affiliated-Projects: FreeBSD, xMach, ircd-hybrid-7 X-Towel: Yes Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Akinori MUSHA escriurères > At Fri, 14 Jun 2002 11:49:51 -0400 (EDT), > Trevor Johnson wrote: > > Mikhail Teterin wrote: > > > > > But the macro could be implemented without using the -i option -- > > > mktemp(1) is with us since FreeBSD-2.2.7... > > > > That sounds like the best idea. I don't know how to write such a macro > > though. Would you mind writing it? > > How about writing inplace(1) instead? It should be generally useful > because you can use any filter command such as sed(1), awk(1), > grep(1), sort(1), uniq(1), and so on with it. The name and the > sinopsis would be a matter of controversy, though. sed 's/foo/bar/;s/blah/bleh/' file | tee file > /dev/null -- Juli Mallett FreeBSD: The Power To Serve Perception is prejudice / Don't classify me / Accept me as me / Not what you see To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message