aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-05-19 17:13:24 +0000
committerrsc <devnull@localhost>2005-05-19 17:13:24 +0000
commite3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e (patch)
treebd6315a38a1beb3f6d3d93c888e4e57d5733e127 /src/cmd/rc
parent0b14ce0e111fc2ab828ad7ca268336a9e4944369 (diff)
downloadplan9port-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.c3
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 ...]]");