set $PLAN9 if necessary

This commit is contained in:
rsc 2005-05-19 17:13:24 +00:00
parent 0b14ce0e11
commit e3ffbf3b84

View file

@ -110,6 +110,9 @@ main(int argc, char *argv[])
code bootstrap[32];
char num[12], *rcmain;
int i;
/* needed for rcmain later */
setenv("PLAN9", unsharp("#9"), 1);
argc=getflags(argc, argv, "srdiIlxepvVc:1m:1[command]", 1);
if(argc==-1) usage("[file [arg ...]]");