Hello, 

When I tried switching my login shell from bash to rc (installed in
/opt/plan9/bin/rc here) I stumbled upon 2 problems:

1) /usr/local/plan9/rcmain: rc (-rc): .: can't open: No such file or
directory

That got fixed by symlinking /usr/local/plan9 to /opt/plan9, but I
suppose there is a better solution, isn't there?

2) $home/lib/profile didn't get read.

As sqweek found out, it was because the command 'test' in 

$PLAN9/rcmain: if(flag l && test -r $home/lib/profile) . $home/lib/profile

fails since $path is not yet set at this point. 

So replacing 'test' with '/bin/test' worked for me, but again I expect
there might be a better way to fix that. It actually made me wonder if the
line

if(flag p) path=(/bin /usr/bin)

could not be replaced with something usefull for that issue, especially
since man rc says rc -p is a no op?

Cheers,
Mathieu.


Reply via email to