version 1.37, 2005/07/15 17:49:43 |
version 1.38, 2006/03/06 00:09:22 |
Line 336 histcmd(int argc, char **argv) |
|
Line 336 histcmd(int argc, char **argv) |
|
*repl++ = '\0'; |
*repl++ = '\0'; |
argc--, argv++; |
argc--, argv++; |
} |
} |
|
|
|
/* |
|
* If -s is specified, accept only one operand |
|
*/ |
|
if (sflg && argc >= 2) |
|
error("too many args"); |
|
|
/* |
/* |
* determine [first] and [last] |
* determine [first] and [last] |
*/ |
*/ |
Line 421 histcmd(int argc, char **argv) |
|
Line 428 histcmd(int argc, char **argv) |
|
*/ |
*/ |
history(hist, &he, H_ENTER, s); |
history(hist, &he, H_ENTER, s); |
} |
} |
|
|
|
break; |
} else |
} else |
fputs(s, efp); |
fputs(s, efp); |
} |
} |