summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-29 04:09:22 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-29 04:09:22 +0000
commit48e72123566c3d7650be6571b80f9f70b41c6724 (patch)
tree0d23d0de2abdb77ca3971067b7984db08dcd8da6 /bin/ksh/history.c
parentf3f5bf3ebf1aaee9195c0d49323beb781e0c1676 (diff)
Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally. o typeset -f FUNC doesn't print follows command (and expression) substitutions. o when re-allocating memory, too much may be copied from old memory. o set -o printed some options sans names. o emacs mode: <esc>. in very fist command causes core dump. o pdksh dumps core after a cd command. o typeset -i reports on array elements that have no value (at&t ksh reports on array base name - no index). o ulimit -ctn unlimittttted kills shell (resource exceeded). o ". /dev/null" says access denied. o flag field in aliases incorrectly changed (all flags set instead of clearing ISSET) in exec.c(flushcom). o ${#array[*]} prints largest index instead of number of (set) elements in an array (ksh88 does the former). o sys_siglist[] doesn't always have NSIG non-null entries...
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r--bin/ksh/history.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index acdc2c4ec4d..bb02a879500 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.8 1998/06/25 19:01:58 millert Exp $ */
+/* $OpenBSD: history.c,v 1.9 1998/10/29 04:09:20 millert Exp $ */
/*
* command history
@@ -633,9 +633,9 @@ histsave(lno, cmd, dowrite)
* commands
*/
void
-histappend(cmd, nl_seperate)
+histappend(cmd, nl_separate)
const char *cmd;
- int nl_seperate;
+ int nl_separate;
{
int hlen, clen;
char *p;
@@ -646,7 +646,7 @@ histappend(cmd, nl_seperate)
clen--;
p = *histptr = (char *) aresize(*histptr, hlen + clen + 2, APERM);
p += hlen;
- if (nl_seperate)
+ if (nl_separate)
*p++ = '\n';
memcpy(p, cmd, clen);
p[clen] = '\0';