aboutsummaryrefslogtreecommitdiff
path: root/rcmain
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-25 23:03:22 +0000
committerrsc <devnull@localhost>2004-03-25 23:03:22 +0000
commitcb27443abf3d6af6ab52377c71c843e619928433 (patch)
tree437129c581c3a2fbee75c5e52388b2bcf1cedb5e /rcmain
parent0023dde3260f4d6b085bed7d90bf8b1ca0daf77b (diff)
downloadplan9port-cb27443abf3d6af6ab52377c71c843e619928433.tar.gz
plan9port-cb27443abf3d6af6ab52377c71c843e619928433.tar.bz2
plan9port-cb27443abf3d6af6ab52377c71c843e619928433.zip
Today's changes.
Diffstat (limited to 'rcmain')
-rw-r--r--rcmain9
1 files changed, 6 insertions, 3 deletions
diff --git a/rcmain b/rcmain
index c4dda4cd..ad94b299 100644
--- a/rcmain
+++ b/rcmain
@@ -10,15 +10,18 @@ case 1
prompt=($prompt ' ')
}
if(~ $rcname ?.out) prompt=('broken! ' ' ')
-if(flag p) path=/bin
+if(flag p) path=(/bin)
if not{
finit
- if(~ $#path 0) . <{/bin/sh -c 'echo $PATH |
+ if(~ $#path 0) {
+ path=(/bin /usr/bin)
+ . <{sh -c 'echo $PATH |
sed "s/^/path=(''/; s/$/'')/; s/:/'' ''/g"'}
+ }
}
fn sigexit
if(! ~ $#cflag 0){
- if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile
+ if(flag l && test -r $home/lib/profile) . $home/lib/profile
status=''
eval $cflag
}