tDetect rc again. - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 2222020e2212977d733b89e40f7829a71f319cf3 (DIR) parent 286237e092acc24d7336bcb8ac45ee9c41e8042a (HTM) Author: rsc <devnull@localhost> Date: Sat, 29 Oct 2005 17:38:05 +0000 Detect rc again. Diffstat: M src/cmd/mk/shell.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- (DIR) diff --git a/src/cmd/mk/shell.c b/src/cmd/mk/shell.c t@@ -1,10 +1,12 @@ #include "mk.h" static Shell *shells[] = { + &rcshell, &shshell, - &rcshell }; +Shell *shelldefault = &shshell; + Shell *shellt; Word *shellcmd; t@@ -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); }