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 |