summaryrefslogtreecommitdiff
path: root/bin/ksh/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/main.c')
-rw-r--r--bin/ksh/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index 74118b7f037..ad3cce92323 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/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);