aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mk
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-10-29 17:38:05 +0000
committerrsc <devnull@localhost>2005-10-29 17:38:05 +0000
commit2222020e2212977d733b89e40f7829a71f319cf3 (patch)
tree4775c85224c741565ecbade24a97e6d6aa8a3aab /src/cmd/mk
parent286237e092acc24d7336bcb8ac45ee9c41e8042a (diff)
downloadplan9port-2222020e2212977d733b89e40f7829a71f319cf3.tar.gz
plan9port-2222020e2212977d733b89e40f7829a71f319cf3.tar.bz2
plan9port-2222020e2212977d733b89e40f7829a71f319cf3.zip
Detect rc again.
Diffstat (limited to 'src/cmd/mk')
-rw-r--r--src/cmd/mk/shell.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/mk/shell.c b/src/cmd/mk/shell.c
index dd41ad12..cee2f6cc 100644
--- 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);
}