commit 2222020e2212977d733b89e40f7829a71f319cf3
parent 286237e092acc24d7336bcb8ac45ee9c41e8042a
Author: rsc <devnull@localhost>
Date: Sat, 29 Oct 2005 17:38:05 +0000
Detect rc again.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/cmd/mk/shell.c b/src/cmd/mk/shell.c
@@ -1,10 +1,12 @@
#include "mk.h"
static Shell *shells[] = {
+ &rcshell,
&shshell,
- &rcshell
};
+Shell *shelldefault = &shshell;
+
Shell *shellt;
Word *shellcmd;
@@ -39,8 +41,8 @@ setshell(Word *w)
void
initshell(void)
{
- shellcmd = stow(shells[0]->name);
- shellt = shells[0];
+ shellcmd = stow(shelldefault->name);
+ shellt = shelldefault;
setvar("MKSHELL", shellcmd);
}