Re: backtick to NOT set variable

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 20 May 2016 18:33:19 +0200

On 18/05/2016 13:42, Max Ivanov wrote:
> can backtick (or combination of other scripts commands) can be to NOT
> set env var on error?

  I'm pretty sure that any case can be achieved with the current behaviour,
but I agree that ugly contorsions are necessary for more than one case,
so I'm ok to add an option switch - but the semantics need to be right
(and it won't be -z, which I prefer to only use for something related to
reaping z-ombies)

  What exactly is the behaviour you want:

  - don't exit on error, just keep exec'ing
    + do you just define "error" as the subprocess exiting anything else
than 0 ?
  - but completely undefine the variable, in order for later tests such
as importas to pick that up?

  Is that right, or have I missed something?

-- 
  Laurent
Received on Fri May 20 2016 - 16:33:19 UTC

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