public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] newins "-" for standard input?
@ 2009-03-23  8:22 Ulrich Mueller
  2009-03-23  8:48 ` Tiziano Müller
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Ulrich Mueller @ 2009-03-23  8:22 UTC (permalink / raw
  To: gentoo-dev

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'

Ulrich



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-26  1:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23  8:22 [gentoo-dev] newins "-" for standard input? Ulrich Mueller
2009-03-23  8:48 ` Tiziano Müller
2009-03-24  6:55   ` Ulrich Mueller
2009-03-23 11:35 ` Nirbheek Chauhan
2009-03-23 14:24 ` Ciaran McCreesh
2009-03-23 15:41   ` Ulrich Mueller
2009-03-23 17:01     ` Alec Warner
2009-03-26  1:07       ` Mike Frysinger
2009-03-23 16:11 ` Timothy Redaelli
2009-03-23 16:24   ` Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox