[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: root's PATH



On Mon, Oct 23, 2000 at 09:22:08PM -0700, Jeff Hornsberger wrote:
> Hi, I'm having some weirdness happening with root on my system. In
> root's .bashrc file I set his PATH with:
> PATH=$PATH:$HOME/bin:/sbin:/usr/sbin
> export PATH
> This works fine when he is just working in a gnome-terminal or
> something, but when he works in the console, $HOME/bin:/sbin:/usr/sbin
> don't get added to his PATH. Could someone tell me why this is? Doesn't
> .bashrc get read in console mode for some reason? Thanks. -Jeff

.bashrc doesn't get read by a login shell. If you wish for this to happen
add 

. ~/.bashrc

into your .bash_profile file.

-- 
CaT (cat@zip.com.au)

	'We do more then just sing and dance. We've got a brain too.'
		-- The Backstreet Boys



Reply to: