diff options
author | rsc <devnull@localhost> | 2004-05-14 17:45:39 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-14 17:45:39 +0000 |
commit | f1bfc54e12efe488e355debf696dbd999c62fe07 (patch) | |
tree | 4037221d2300fe3a8925f00da6984b26995158a2 /src/cmd | |
parent | 1a8f27c35024af7b4ed857a388d20f0a4a560db0 (diff) | |
download | plan9port-f1bfc54e12efe488e355debf696dbd999c62fe07.tar.gz plan9port-f1bfc54e12efe488e355debf696dbd999c62fe07.tar.bz2 plan9port-f1bfc54e12efe488e355debf696dbd999c62fe07.zip |
More little bug fixes
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/mk/unix.c | 8 | ||||
-rw-r--r-- | src/cmd/mkfile | 2 | ||||
-rw-r--r-- | src/cmd/rc/plan9ish.c | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/cmd/mk/unix.c b/src/cmd/mk/unix.c index 00bee01e..9e4fcea9 100644 --- a/src/cmd/mk/unix.c +++ b/src/cmd/mk/unix.c @@ -23,12 +23,20 @@ readenv(void) Word *w; for(p = environ; *p; p++){ +/* rsc 5/5/2004 -- This misparses fn#cd={whatever} s = shname(*p); if(*s == '=') { *s = 0; w = newword(s+1); } else w = newword(""); +*/ + s = strchr(*p, '='); + if(s){ + *s = 0; + w = newword(s+1); + } else + w = newword(""); if (symlook(*p, S_INTERNAL, 0)) continue; s = strdup(*p); diff --git a/src/cmd/mkfile b/src/cmd/mkfile index caf7a66c..e5ddf684 100644 --- a/src/cmd/mkfile +++ b/src/cmd/mkfile @@ -5,7 +5,7 @@ SHORTLIB=sec fs mux regexp9 thread bio 9 <$PLAN9/src/mkmany -BUGGERED='CVS|faces|factotum|mailfs|scat|upas|vac|venti|lex' +BUGGERED='CVS|faces|factotum|mailfs|scat|upas|vac|venti|lex|vncv' DIRS=`ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"` <$PLAN9/src/mkdirs diff --git a/src/cmd/rc/plan9ish.c b/src/cmd/rc/plan9ish.c index 6644778c..af1e449d 100644 --- a/src/cmd/rc/plan9ish.c +++ b/src/cmd/rc/plan9ish.c @@ -34,7 +34,6 @@ char Fdprefix[]="/dev/fd/"; void execfinit(void); void execbind(void); void execmount(void); -void execnewpgrp(void); builtin Builtin[]={ "cd", execcd, "whatis", execwhatis, |