diff options
author | 2002-11-27 20:53:25 +0000 | |
---|---|---|
committer | 2002-11-27 20:53:25 +0000 | |
commit | a88e874f3577bd97cff57e19b78b24013102dc87 (patch) | |
tree | 43661ad0e29936fcdcc2ca5f9a724ff7ff7fcf53 | |
parent | I fucked up. The manpage was correct before my last commit. (diff) | |
download | wireguard-openbsd-a88e874f3577bd97cff57e19b78b24013102dc87.tar.xz wireguard-openbsd-a88e874f3577bd97cff57e19b78b24013102dc87.zip |
Make fc -e work in "sh-mode" (shell invoked as /bin/sh or -o sh option)
as well; matches Solaris. "can't hurt anything" marc@
Original report from PR user/2883
-rw-r--r-- | bin/ksh/history.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c index db9d0d851a3..be170cfad05 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.15 2002/10/23 14:23:15 millert Exp $ */ +/* $OpenBSD: history.c,v 1.16 2002/11/27 20:53:25 pvalchev Exp $ */ /* * command history @@ -239,10 +239,8 @@ c_fc(wp) return 1; } - if (!Flag(FSH)) { - /* Ignore setstr errors here (arbitrary) */ - setstr(local("_", FALSE), tf->name, KSH_RETURN_ERROR); - } + /* Ignore setstr errors here (arbitrary) */ + setstr(local("_", FALSE), tf->name, KSH_RETURN_ERROR); /* XXX: source should not get trashed by this.. */ { |