diff options
Diffstat (limited to 'bin/pdksh/main.c')
-rw-r--r-- | bin/pdksh/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/pdksh/main.c b/bin/pdksh/main.c index 74118b7f037..ad3cce92323 100644 --- a/bin/pdksh/main.c +++ b/bin/pdksh/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.2 1996/08/19 20:08:56 downsj Exp $ */ +/* $OpenBSD: main.c,v 1.3 1996/10/01 02:05:45 downsj Exp $ */ /* * startup, main loop, enviroments and error handling @@ -57,7 +57,9 @@ static const char *const initcoms [] = { #ifdef KSH "autoload=typeset -fu", "functions=typeset -f", +# ifdef HISTORY "history=fc -l", +# endif /* HISTORY */ "integer=typeset -i", "nohup=nohup ", "local=typeset", @@ -356,7 +358,7 @@ main(argc, argv) include(substitute("$HOME/profile.ksh", 0), 0, (char **) 0, 1); #else /* OS2 */ - include("/etc/profile", 0, (char **) 0, 1); + include(KSH_SYSTEM_PROFILE, 0, (char **) 0, 1); if (!Flag(FPRIVILEGED)) include(substitute("$HOME/.profile", 0), 0, (char **) 0, 1); |