Sorry it took so long. Please try the -I option to backtick and withstdinas
in the latest execline git and tell me if it works for you.
--
Laurent
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
shell construct, lets call it
`ignoreme` then it would be:
```
ignoreme backtick -i MAYBEARG { ... }
import -u MAYBEARG
...
```
but I can't see how it can be done in a model which execline follows.
It have to be like "foreground" but without a fork which seems not
doable.
2) introduce swi
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?
Not if it succeeds.
However, backtick -i will exit on error: you can use that difference in
program flow to create the sequence you need.
backtick -n