diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-05-19 17:36:09 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2010-05-19 17:36:09 +0000 |
commit | f982b5610e37d47c7c9cd160218566bd78adaeac (patch) | |
tree | 75d782b9cb5fb8ef615d37dc88b8251446010a3f /bin/ksh/history.c | |
parent | b34968693c2ac4f8e4a2ad1e2a47542a5f69e689 (diff) |
properly keep track of the line number after a trap.
this fixes pr 6195. diff from manuel giraud, thanks.
ok kili@
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r-- | bin/ksh/history.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c index 9d735b829b6..4f4fdd11630 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.38 2010/05/01 21:09:23 guenther Exp $ */ +/* $OpenBSD: history.c,v 1.39 2010/05/19 17:36:08 jasper Exp $ */ /* * command history @@ -226,7 +226,7 @@ c_fc(char **wp) Source *sold = source; int ret; - ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_"); + ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_", 0); source = sold; if (ret) return ret; @@ -295,7 +295,7 @@ hist_execute(char *cmd) */ /* XXX: source should not get trashed by this.. */ sold = source; - ret = command(cmd); + ret = command(cmd, 0); source = sold; return ret; } |