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: how to get the windows PATH env in cygwin

On Tue, Dec 01, 2009 at 12:42:01PM -0600, DePriest, Jason R. wrote:
> On Tue, Dec 1, 2009 at 10:03 AM, Andy Koppe <> wrote:
> > 2009/12/1 Reinier Post:
> >>> If you want to see the Windows PATH setting unmolested by Cygwin, you
> >>> will either need to strip out the additions set by /etc/profile or avoid
> >>> running under an environment modified by /etc/profile.
> >>
> >> It doesn't add, actually - it replaces it.
> >
> > You're wrong. The Cygwin DLL at startup translates the Windows PATH
> > variable. And this line in /etc/profile adds to it:
> >
> > PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH

True.  I grepped for that line, read it, and didn't see the $PATH.
> This is completely and totally true.
> To verify it, all you have to do is open a bash prompt (Cygwin.bat,
> mintty, rxvt, whatever) and then launch a cmd.exe or powershell.

Not quite.  I did this, but missed the .bash_profile I forgot I created
three years ago.



Problem reports:
Unsubscribe info:

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