Subject: Re: bin/17870: /bin/sh bug on expanding $? in here-documents
To: None <email@example.com>
From: David Laight <firstname.lastname@example.org>
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: email@example.com