Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] newins "-" for standard input?
Date: Mon, 23 Mar 2009 14:24:48
Message-Id: 20090323142432.6b686b39@snowcone
In Reply to: [gentoo-dev] newins "-" for standard input? by Ulrich Mueller
1 On Mon, 23 Mar 2009 09:22:06 +0100
2 Ulrich Mueller <ulm@g.o> wrote:
3 > Now that "dosed" is going to be banned, what would people think of
4 > "newins" (and the other "new*" commands) accepting "-" as the first
5 > argument?
6
7 There's a slightly different variation in exheres-0: as well as do* and
8 new*, there's also here*, which you use like this:
9
10 hereins foo <<'END'
11 stuff
12 END
13
14 It magically barfs, rather than hanging indefinitely, if you forget to
15 give it some input.
16
17 The rationale for giving it a new name rather than overloading an
18 existing one is that some of the existing do* utilities don't take just
19 a single simple filename, so overloading would make the command line
20 somewhat convoluted.
21
22 --
23 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] newins "-" for standard input? Ulrich Mueller <ulm@g.o>