| # rcmain: Plan 9 on Unix version |
| if(~ $#home 0) home=$HOME |
| if(~ $rcname ?.out ?.rc */?.rc */?.out) prompt=('broken! ' ' ') |
| if(flag p) path=(/bin /usr/bin) |
| # should be taken care of by rc now, but leave just in case |
| if(flag l && test -r $home/lib/profile) . $home/lib/profile |
| # builtin cd $1 && flag i && awd |
| # is not sufficient when running in a subshell |
| # that is rc -e (like mk uses!) |
| if(flag i) $PLAN9/bin/9 awd || status='' |
| if(flag l && test -r $home/lib/profile) . $home/lib/profile |
| if(flag l && test -r $home/lib/profile) . $home/lib/profile |