diff --git a/src/cmd/ksh93/sh/io.c b/src/cmd/ksh93/sh/io.c index b2346a49c..63e2af26d 100644 --- a/src/cmd/ksh93/sh/io.c +++ b/src/cmd/ksh93/sh/io.c @@ -2096,6 +2096,7 @@ static int io_prompt(Shell_t *shp,Sfio_t *iop,register int flag) } #endif /* TIOCLBIC */ cp = sh_mactry(shp,nv_getval(sh_scoped(shp,PS1NOD))); + shp->exitval = 0; for(;c= *cp;cp++) { if(c==HIST_CHAR)