• support IBM xlC on AIX
• fix all bugs it could find ☺
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.51 2007/07/01 21:10:28 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/histrap.c,v 1.52 2007/07/22 13:34:50 tg Exp $");
|
||||
|
||||
Trap sigtraps[NSIG + 1];
|
||||
static struct sigaction Sigact_ign;
|
||||
@@ -177,8 +177,10 @@ c_fc(const char **wp)
|
||||
|
||||
for (hp = rflag ? hlast : hfirst;
|
||||
hp >= hfirst && hp <= hlast; hp += rflag ? -1 : 1) {
|
||||
shf_fprintf(shl_stdout, nfmt,
|
||||
hist_source->line - (int) (histptr - hp));
|
||||
if (!nflag)
|
||||
shf_fprintf(shl_stdout, "%d",
|
||||
hist_source->line - (int)(histptr - hp));
|
||||
shf_putc('\t', shl_stdout);
|
||||
/* print multi-line commands correctly */
|
||||
for (s = *hp; (t = strchr(s, '\n')); s = t)
|
||||
shf_fprintf(shl_stdout, "%.*s\t",
|
||||
|
Reference in New Issue
Block a user