From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 6 May 2008 15:18:31 +0200 From: lejatorn@gmail.com To: 9fans@9fans.net Message-ID: <20080506131830.GC3723@secousse.ipgp.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: [9fans] problems with rc as login shell Topicbox-Message-UUID: 9fcaa8ca-ead3-11e9-9d60-3106f5b1d025 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.