Re: execline: accessing LASTEXITCODE environment variable

From: John Vogel <jvogel4_at_stny.rr.com>
Date: Wed, 20 Aug 2014 16:28:28 -0400

On Wed, 20 Aug 2014 08:25:30 +0100
Laurent Bercot <ska-skaware_at_skarnet.org> wrote:

> > This is contrary to the documentation, but it appears to set
> > the environment variable '?', not LASTEXITCODE:
>
> Ah, I'm sorry, I forgot to update the foreground documentation. My bad.
>
> Starting with execline-1.3.0, LASTEXITCODE has been changed to ?
> and LASTPID to ! ; and the pipeline utility also sets ! .
> Documentation now updated.
>
> You can get the old behaviour by compiling with -DEXECLINE_OLD_VARNAMES,
> but please do not rely on this for too long. (execline-2.0 is just around
> the corner, and I may or may not remove support for old variables.)
>
> --
> Laurent
Ah, good deal. Thank you, Patrick and Laurent, for clearing this up. $? is
same as shell, so makes the transition that much easier.

John
Received on Wed Aug 20 2014 - 20:28:28 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC