[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AS_EXIT
From: |
Lars J. Aas |
Subject: |
Re: AS_EXIT |
Date: |
Mon, 30 Oct 2000 13:28:58 +0100 |
User-agent: |
Mutt/1.2.5i |
On Sun, Oct 29, 2000 at 11:29:31PM -0200, Alexandre Oliva wrote:
: On Oct 29, 2000, Pavel Roskin <address@hidden> wrote:
: > Also we could have smarter AS_EXIT that would expand to ":; exit"
: > for 0, "false; exit" for 1 or no argument and "(exit $1); exit" in
: > general case.
:
: I have mixed feelings about that. Even though the resulting script
: may get a little bit cleaner, it doesn't follow that it's easier to
: understand (not everybody will immediately get that `:' and `false'
How about `true' and `false'?
: will set the exit status we want to exit), and it would make the
: implementation of the macro more complicated.
Not much:
{ m4_case([$1], 0, [true; exit],
[$1], 1, [false; exit],
[(exit $1); exit]) }
Lars J
- AS_EXIT, Pavel Roskin, 2000/10/28
- Re: AS_EXIT, Alexandre Oliva, 2000/10/29
- Re: AS_EXIT, Alexandre Oliva, 2000/10/30
- Re: AS_EXIT, Lars J. Aas, 2000/10/31
- Re: AS_EXIT, Akim Demaille, 2000/10/31
- Re: AS_EXIT, Lars J. Aas, 2000/10/31
- Re: AS_EXIT, Pavel Roskin, 2000/10/31
- Re: AS_EXIT, Alexandre Oliva, 2000/10/31
- Re: AS_EXIT, Alexandre Oliva, 2000/10/31