Mike Frysinger wrote: > $ true > $ echo '<enter> > <ctrl+d> > $ echo $? > 258 > > $ true > $ echo '<enter> > <ctrl+d> > $ echo '<enter> > <ctrl+c> > $ echo $? > 386
Just tested it, hopefully it's as easy as changing every itos (last_command_exit_value) to itos (last_command_exit_value & 0xFF) in subst.c (seems 2 times). I don't provide a patch because it was a quick look and I don't know if any other parts of the code are involved (if yes, the patch would be awfully wrong). J.