Mailing List Archive


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

Re: [tlug] Bashing away at Unix



Godwin Stewart wrote:
On Wed, 12 Mar 2008 18:40:41 +0900, Brian Chandler
<brian@example.com> wrote:

Have I guessed wrong what .profile does?

ICBW but I believe .profile is only read by the Bourne shell. If you're using a different shell, such as tcsh then .profile will never be read anyway.

Thanks for the (similar) answers... OK, so I found something about the bash profile going in .bash_profile ... I also guessed that $SHELL tells me what shell I am running in by default, and it says /bin/csh. But the current PATH setting isn't the same as in .profile... ah, but it's in .cshrc, and here's a curious bit:


# Remove . from path to avoid potential confusion.
set path = (~/bin /bin /usr/bin /usr/local/bin /usr/sbin)

Hmm, very Japanese... but I tried manually:

set PATH=.:$PATH

and now . appears at the front of the PATH value, but it _still_ won't run script fred unless I type ./fred . Um, I'm running out of steam here...

Brian Chandler




Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links