From c7e19bded13922bd168d315113befcc9bd8a87cf Mon Sep 17 00:00:00 2001 From: graichen Date: Sun, 29 Dec 1996 12:24:05 +0000 Subject: [PATCH] change the name of the history file from .pdksh_hist to .ksh_history this way it is clearer where it comes from (pdksh is ksh in OpenBSD) and it's more consistent with other shells (bash - .bash_history and i think FreeBSD's sh also used something like .sh_history) --- bin/ksh/history.c | 8 +++++--- bin/pdksh/history.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/bin/ksh/history.c b/bin/ksh/history.c index d1126f005bd..0ed6ee708f6 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.1.1.1 1996/08/14 06:19:11 downsj Exp $ */ +/* $OpenBSD: history.c,v 1.2 1996/12/29 12:24:05 graichen Exp $ */ /* * command history @@ -26,9 +26,11 @@ # ifndef HISTFILE # ifdef OS2 # define HISTFILE "history.ksh" -# else /* OS2 */ +# elif __OpenBSD__ /* OS2 */ +# define HISTFILE ".ksh_history" +# else /* __OpenBSD__ */ # define HISTFILE ".pdksh_hist" -# endif /* OS2 */ +# endif /* OS2 and __OpenBSD__ */ # endif # else diff --git a/bin/pdksh/history.c b/bin/pdksh/history.c index d1126f005bd..0ed6ee708f6 100644 --- a/bin/pdksh/history.c +++ b/bin/pdksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.1.1.1 1996/08/14 06:19:11 downsj Exp $ */ +/* $OpenBSD: history.c,v 1.2 1996/12/29 12:24:05 graichen Exp $ */ /* * command history @@ -26,9 +26,11 @@ # ifndef HISTFILE # ifdef OS2 # define HISTFILE "history.ksh" -# else /* OS2 */ +# elif __OpenBSD__ /* OS2 */ +# define HISTFILE ".ksh_history" +# else /* __OpenBSD__ */ # define HISTFILE ".pdksh_hist" -# endif /* OS2 */ +# endif /* OS2 and __OpenBSD__ */ # endif # else -- 2.20.1