Re: backtick to NOT set variable

2016-06-18 Thread Laurent Bercot
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

Re: backtick to NOT set variable

2016-05-20 Thread Laurent Bercot
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

Re: backtick to NOT set variable

2016-05-18 Thread Max Ivanov
> > 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. I didn't find a construct where rest of the program can be executed in same process as `backtick`, or at least forked after `backtick`. Closest I

Re: backtick to NOT set variable

2016-05-18 Thread Laurent Bercot
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