Subject: Re: bin/17514 bin/sh and -e
To: None <gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 01/11/2003 18:38:31
> > Some related 'features':

$ set -e; echo x$(exit 5)

should also (probably) exit when the back-quoted command fails.
(and so not echo anything before the shell exits).

$ set -e; x=$(exit 5)

does exit though (at least from my sources).

	David

-- 
David Laight: david@l8s.co.uk