-e does not take effects in subshell

2015-08-11 Thread PRC
I have a export function looking like: mybuild() { ( set -e make echo "build okay" ) } I wish to use this function this way: mybuild && do_other_stuff But whatever (success or failure) make returns "build okay" is always printed and do_other_stuff always gets ex

RE: -e does not take effects in subshell

2015-08-12 Thread PRC
t; Subject: Re: -e does not take effects in subshell > > On Tue, Aug 11, 2015 at 11:42:29AM +, PRC wrote: > > mybuild() > > { > > ( > > set -e > > make > > echo "build okay" > > ) > > } > > >