Detect rc again.

This commit is contained in:
rsc 2005-10-29 17:38:05 +00:00
parent 286237e092
commit 2222020e22

View file

@ -1,10 +1,12 @@
#include "mk.h" #include "mk.h"
static Shell *shells[] = { static Shell *shells[] = {
&rcshell,
&shshell, &shshell,
&rcshell
}; };
Shell *shelldefault = &shshell;
Shell *shellt; Shell *shellt;
Word *shellcmd; Word *shellcmd;
@ -39,8 +41,8 @@ setshell(Word *w)
void void
initshell(void) initshell(void)
{ {
shellcmd = stow(shells[0]->name); shellcmd = stow(shelldefault->name);
shellt = shells[0]; shellt = shelldefault;
setvar("MKSHELL", shellcmd); setvar("MKSHELL", shellcmd);
} }