Subject: Re: bin/17870: /bin/sh bug on expanding $? in here-documents
To: None <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 08/08/2002 10:30:56
> I think the correct solution is to move the 'oexitstatus = exitstatus'
> from inside the loop in expredir() to before each call to it.
> (Except the one in evalcommand - where it is already set.)
Note that this doesn't fix:
for f in $? `echo $?` $? `echo $?`
Even if you move the 'oexitstatus = exitstatus' outside of the
loop in 'evalfor'.
David Laight: firstname.lastname@example.org