Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Chris G. Demetriou <cgd@netbsd.org>
List: source-changes
Date: 03/06/2001 04:20:19
Module Name:	syssrc
Committed By:	cgd
Date:		Tue Mar  6 02:20:18 UTC 2001

Modified Files:
	syssrc/sys/kern: genassym.sh

Log Message:
when executing args in the ccode=0 case, send output to a tmp file and
(only if cmd exited successfully) use tmp file as input to sed pipeline.
This works around two issues:
(1) a pathological case where the script would fail in ... interesting
    ways if the command being executed closed its stdout.  (Certain
    commands are used only for their side effects, but not their output,
    and doing some testing on my own i got into hot water when one
    of my mods caused a command to close its output).
(2) the fact that genassym would succeed even when the command in
    fact failed (because the last cmd in the pipeline is the one whose
    exit status would be reported).


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 syssrc/sys/kern/genassym.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.