Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] newins "-" for standard input?
Date: Mon, 23 Mar 2009 08:22:09
Message-Id: 18887.18094.328906.70609@a1ihome1.kph.uni-mainz.de
1 Now that "dosed" is going to be banned, what would people think of
2 "newins" (and the other "new*" commands) accepting "-" as the first
3 argument? I don't know how many usage cases there are, but the
4 following are obvious:
5
6 sed 's/quux/quuux/' foo | newins - foo
7
8 It would allow for here documents:
9
10 newins - bar <<-EOF
11 # configuration file (for example)
12 EOF
13
14 or even:
15
16 newins - baz <<<$'# a short\n# file'
17
18 Ulrich

Replies

Subject Author
Re: [gentoo-dev] newins "-" for standard input? "Tiziano Müller" <dev-zero@g.o>
Re: [gentoo-dev] newins "-" for standard input? Nirbheek Chauhan <nirbheek@g.o>
Re: [gentoo-dev] newins "-" for standard input? Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-dev] newins "-" for standard input? Timothy Redaelli <drizzt@g.o>