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 1Llfpz-0001XK-Qw for garchives@archives.gentoo.org; Mon, 23 Mar 2009 08:48:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB615E0350; Mon, 23 Mar 2009 08:48:50 +0000 (UTC) Received: from smtp.tmcs.ch (113.245.131.213.static.inetbone.net [213.131.245.113]) by pigeon.gentoo.org (Postfix) with ESMTP id 7EAB4E0350 for ; Mon, 23 Mar 2009 08:48:50 +0000 (UTC) Received: from [192.168.168.195] (unknown [212.126.163.234]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.tmcs.ch (Postfix) with ESMTPSA id A7E721393668 for ; Mon, 23 Mar 2009 09:48:49 +0100 (CET) Subject: Re: [gentoo-dev] newins "-" for standard input? From: Tiziano =?ISO-8859-1?Q?M=FCller?= To: gentoo-dev@lists.gentoo.org In-Reply-To: <18887.18094.328906.70609@a1ihome1.kph.uni-mainz.de> References: <18887.18094.328906.70609@a1ihome1.kph.uni-mainz.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-l71EGfKEXgvEFy9Qsg8K" Organization: Gentoo Date: Mon, 23 Mar 2009 09:48:28 +0100 Message-Id: <1237798108.13132.20.camel@localhost> 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 X-Mailer: Evolution 2.24.5 X-Archives-Salt: 653ad60a-2cba-4873-942d-63f8bc796bc4 X-Archives-Hash: 80527a7ce038a195ebe015081f0fc1d3 --=-l71EGfKEXgvEFy9Qsg8K Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Am Montag, den 23.03.2009, 09:22 +0100 schrieb Ulrich Mueller: > 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: >=20 > sed 's/quux/quuux/' foo | newins - foo >=20 > It would allow for here documents: >=20 > newins - bar <<-EOF > # configuration file (for example) > EOF >=20 > or even: >=20 > newins - baz <<<$'# a short\n# file' >=20 I like it :-) --=-l71EGfKEXgvEFy9Qsg8K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) iEYEABECAAYFAknHTNwACgkQGwVqY66cHjD1MQCfdw4gOaZ1Iess76JjWlPZUhr7 FboAn0yRXXfnu0+T6bpQK30qs6GxcTuS =kvl2 -----END PGP SIGNATURE----- --=-l71EGfKEXgvEFy9Qsg8K--