Detect rc again.
This commit is contained in:
parent
286237e092
commit
2222020e22
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue