Subject: CVS commit: basesrc/bin/sh
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 10/23/2002 22:46:34
Module Name: basesrc
Committed By: christos
Date: Wed Oct 23 19:46:34 UTC 2002
Modified Files:
basesrc/bin/sh: eval.c
Log Message:
From David Laight
> 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.
To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 basesrc/bin/sh/eval.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.