lsh is a shell which resembles command interpreters of PC systems (such as 4-DOS, DR-DOS, FREE-DOS, MS-DOS, OPEN-DOS, N-DOS, PC-DOS, Q-DOS and others, which might be trademarks of their owners and which is hereby acknowledged). Many of these command interpreters are but poor copies of proper unix shells. So you can think of lsh as a poor clone of a poor clone.
22 lines
749 B
Text
22 lines
749 B
Text
$NetBSD: patch-ai,v 1.1.1.1 2004/12/05 16:45:04 bencollver Exp $
|
|
|
|
--- main.c.orig Sat Jan 8 09:22:53 2000
|
|
+++ main.c
|
|
@@ -89,7 +89,7 @@ main (int argc, char **argv)
|
|
setenv ("GID", cmdv, 1);
|
|
|
|
/* run the global autoexec first */
|
|
- cmdrun ("/etc/autoexec", stdout);
|
|
+ cmdrun (LSH_SYSCONFDIR "/autoexec", stdout);
|
|
|
|
/* run the autoexec for that group (redundant) */
|
|
/* sprintf(cmdv,"/etc/autoexec.%d",getgid()); */
|
|
@@ -215,7 +215,7 @@ main (int argc, char **argv)
|
|
{
|
|
if (!(argv[0][0] == '-' || (getenv (STRNOUNINIT) != NULL) || getppid () == 1))
|
|
{
|
|
- cmdrun ("/etc/autoexec", stdout);
|
|
+ cmdrun (LSH_SYSCONFDIR "/autoexec", stdout);
|
|
ep = getenv ("HOME");
|
|
if (ep != NULL)
|
|
{
|