From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Llmky-00008x-TU for garchives@archives.gentoo.org; Mon, 23 Mar 2009 16:12:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86436E04F2; Mon, 23 Mar 2009 16:12:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5E80AE04F2 for ; Mon, 23 Mar 2009 16:12:07 +0000 (UTC) Received: from [0.0.0.0] (dev.gentooexperimental.org [81.93.240.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C680064AAE for ; Mon, 23 Mar 2009 16:12:06 +0000 (UTC) From: Timothy Redaelli Organization: Gentoo Foundation To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] newins "-" for standard input? Date: Mon, 23 Mar 2009 17:11:52 +0100 User-Agent: KMail/1.9.10 References: <18887.18094.328906.70609@a1ihome1.kph.uni-mainz.de> In-Reply-To: <18887.18094.328906.70609@a1ihome1.kph.uni-mainz.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3584487.L7YTeZHHHm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200903231711.58676.drizzt@gentoo.org> X-Archives-Salt: 720439f9-c7ad-4e23-a7ec-45846473889a X-Archives-Hash: d6e63a22dba4da9ddb0bad34cc093975 --nextPart3584487.L7YTeZHHHm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 23 March 2009 09:22:06 Ulrich Mueller wrote: > Now that "dosed" is going to be banned, what would people think of > "newins" (and the other "new*" commands) accepting "-" as the first > argument? I don't know how many usage cases there are, but the > following are obvious: > > sed 's/quux/quuux/' foo | newins - foo > > It would allow for here documents: > > newins - bar <<-EOF > # configuration file (for example) > EOF > > or even: > > newins - baz <<<$'# a short\n# file' Why can't you use "newins /dev/stdin foo" that it works out of the box? =2D-=20 Timothy `Drizzt` Redaelli =46reeSBIE Developer, Gentoo Developer, GUFI Staff There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. -- Jeremy S. Anderson --nextPart3584487.L7YTeZHHHm Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) iEYEABECAAYFAknHtM4ACgkQ9LNSOuuNMUUYdACfWNZxZzVTBBq+s4euCtA/g1Pm p7MAn21GzWmuRgDUTpT7DUWN4JigXAY8 =GgHM -----END PGP SIGNATURE----- --nextPart3584487.L7YTeZHHHm--