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

Re: bash



On Wed, Dec 18, 2002 at 04:01:51AM +0000, Pigeon wrote:
> Puzzled Pigeon: Huh? It gets executed, according to the first line...
> 
> # ~/.bash_profile: executed by bash(1) for login shells.
> 
> It sure looks like a shell script, and you put shell script
> commands in it. And shell scripts need to be executable
> before you can execute them. 
> 
> Tries experiment: chmod a-x ~/.bash_profile and logs in from another vc.
> 
> Gordon Bennett! It's true an' all. Sorry Josh, I thought that was a
> typo.
> 
> How does that one work then?

	It actually gets sourced by bash, not executed.  This means that
it is equivalent to you typing in these commands, and not run in a
separate process.

Simon



Reply to: