diff options
author | rsc <devnull@localhost> | 2005-05-19 17:13:24 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-05-19 17:13:24 +0000 |
commit | e3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e (patch) | |
tree | bd6315a38a1beb3f6d3d93c888e4e57d5733e127 /src/cmd/rc | |
parent | 0b14ce0e111fc2ab828ad7ca268336a9e4944369 (diff) | |
download | plan9port-e3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e.tar.gz plan9port-e3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e.tar.bz2 plan9port-e3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e.zip |
set $PLAN9 if necessary
Diffstat (limited to 'src/cmd/rc')
-rw-r--r-- | src/cmd/rc/exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/rc/exec.c b/src/cmd/rc/exec.c index e6cde9e1..ae2aa867 100644 --- a/src/cmd/rc/exec.c +++ b/src/cmd/rc/exec.c @@ -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 ...]]"); |