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"
|
#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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue