This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.7: PATH in Bash shells

Hi Gerry

On Sun, Feb 6, 2011 at 9:43 PM, Gerry Reno  wrote:
> David, thanks for the response. ? I put my responses inline...
> On 02/06/2011 02:16 PM, David Sastre wrote:
>> On Sun, Feb 06, 2011 at 01:33:37PM -0500, Gerry Reno wrote:
>>> What is the proper method to set the PATH variable on a system-wide
>>> basis in Cygwin?
>>> Right now in the Cygwin Bash shell the PATH is set to:
>>> ? ? bash-4.1$ echo $PATH
>>> ? ? /cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wb
>>> ? ? em:/cygdrive/c/Program Files (x86)/Microsoft SQL
>>> ? ? Server/90/Tools/binn/:/usr/bin
>> First off, I'm curious about how do you start the bash shell. I ask
>> because you don't seem to have PS1 set correctly, and that should be
>> automated by startup-scripts.
> I didn't change anything. ?This is rather new installation of Cygwin.

Do you start Cygwin from cygwin.bat, or a shortcut of your own?
PS1 not being set is a symptom of the shell not being started as
interactive or login shell.
(cygwin.bat for instance starts bash --login -i)

I see you have a .bash_profile . Do you also have a .bashrc in your
home directory ?

GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]