summaryrefslogtreecommitdiff
path: root/appl/cmd/mk
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
commit6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch)
tree314123bcab78ff295f38f85f31dc141e5fe22d15 /appl/cmd/mk
parent74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff)
20061220
Diffstat (limited to 'appl/cmd/mk')
-rw-r--r--appl/cmd/mk/mk.b11
1 files changed, 7 insertions, 4 deletions
diff --git a/appl/cmd/mk/mk.b b/appl/cmd/mk/mk.b
index 49a5c1a2..7deadba5 100644
--- a/appl/cmd/mk/mk.b
+++ b/appl/cmd/mk/mk.b
@@ -18,8 +18,6 @@ include "bufio.m";
Iobuf: import bufio;
include "libc0.m";
libc0: Libc0;
-include "math.m";
- math: Math;
include "regex.m";
regex: Regex;
include "ar.m";
@@ -33,9 +31,9 @@ init(nil: ref Draw->Context, argl: list of string)
sys = load Sys Sys->PATH;
bufio = load Bufio Bufio->PATH;
libc0 = load Libc0 Libc0->PATH;
- math = load Math Math->PATH;
regex = load Regex Regex->PATH;
daytime = load Daytime Daytime->PATH;
+ sys->pctl(Sys->FORKNS, nil);
main(len argl, libc0->ls2aab(argl));
}
@@ -622,7 +620,7 @@ initbind()
f := sys->sprint("/usr/%s/lib/mkbinds", getuser());
b := bufio->open(f, Bufio->OREAD);
if(b == nil)
- b = bufio->open("/appl/cmd/mk/mkbinds", Bufio->OREAD);
+ b = bufio->open("/lib/mk/binds", Bufio->OREAD);
if(b == nil)
return;
while((s := b.gets('\n')) != nil){
@@ -3038,6 +3036,11 @@ readenv()
w: ref Word;
sys->pctl(Sys->FORKENV, nil); # use copy of the current environment variables
+ if(sys->open("/env/autoload", Sys->OREAD) == nil){
+ fd := sys->create("/env/autoload", Sys->OWRITE, 8r666);
+ if(fd != nil)
+ sys->fprint(fd, "std");
+ }
envf = sys->open("/env", Sys->OREAD);
if(envf == nil)
return;