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
20 if(flag l && test -r $home/lib/profile) . $home/lib/profile
28 # builtin cd $1 && flag i && awd
29 # is not sufficient when running in a subshell
30 # that is rc -e (like mk uses!)
32 if(flag i) $PLAN9/bin/9 awd || status=''
38 if(flag l && test -r $home/lib/profile) . $home/lib/profile
44 if(flag l && test -r $home/lib/profile) . $home/lib/profile