defer setting exstat for eval to 0 (the one used in case shell() is empty)

until after the stuff run in shell() has had a chance to toy with $?

bug forwarded by one of our packagers, found by one of their users
This commit is contained in:
tg
2012-10-21 21:55:05 +00:00
parent 31f24a4040
commit c7419d9e6a
3 changed files with 25 additions and 8 deletions

4
sh.h
View File

@ -157,9 +157,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.594 2012/10/21 21:39:05 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.595 2012/10/21 21:55:05 tg Exp $");
#endif
#define MKSH_VERSION "R40 2012/10/03"
#define MKSH_VERSION "R40 2012/10/21"
/* arithmetic types: C implementation */
#if !HAVE_CAN_INTTYPES