Subject: Re: another vfork shell regression
To: None <current-users@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 10/23/2002 22:54:13
On Wed, Oct 23, 2002 at 08:20:59PM +0100, David Laight wrote:
> The wrong process is aborting when variable assignment fails
> in the vfork path.  So the following command fails to execute
> the second echo (shown here with the correct output).
> 
> $ (readonly r; r= /bin/echo a; echo b)
> r: is read only
> b
> 
> fix: defer the mklocal() to the child shell.
> 
> Also 'jobs' fails in a non-interactive shell.
> In showjobs(), the code that puts the process back into its
> own process group should only be run if the shell is actually
> doing job control - eg if 'mflag' is set.

Thanks to Christos for applying these fixes for me.

	David

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