1 # rcmain: Plan 9 on Unix version
2 if(~ $#home 0) home=$HOME
12 if(~ $rcname ?.out ?.rc */?.rc */?.out) prompt=('broken! ' ' ')
13 if(flag p) path=(/bin /usr/bin)
16 # should be taken care of by rc now, but leave just in case
19 eval `{sh -c 'echo $PATH |
20 sed "s/^/path=(''/; s/$/'')/; s/:/'' ''/g"'}
25 if(flag l && test -r $home/lib/profile) . $home/lib/profile
32 fn cd { builtin cd $1 && flag i && awd }
34 if(flag l && test -r $home/lib/profile) . $home/lib/profile
39 if not if(~ $#* 0) . '/dev/stdin'