This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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: Path problem with xterm

> From: [mailto:cygwin-xfree-
>] On Behalf Of John Emmas
> Sent: Monday, September 28, 2009 4:43 AM

> From: "Mike Ayers"
> >
> > If you set PATH absolutely in .bash_profile, the right thing will
> happen.
> > You may want to copy the initial value of PATH into another exported
> env
> > var, so that you can see if there have been changes to the default
> path.

> Hi Mike.  If I can find some time this week, I'm tempted to give this a
> try
> but I don't quite understand how it would work.  Are you saying that an
> absolute path in .bash_profile will somehow override the other paths?
> Or
> that it will somehow prevent the various other scripts from adding
> their own
> entries?  Or will I still have to track down all those other files and
> edit
> them anyway?

	In .bash_profile:

export OPATH=$PATH
export PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin'

	Note that we are discarding the old value of PATH.  Now, when the ancillary login scripts run and add their bits to PATH, those bits will only be there once.  So we completely rebuild PATH on a login shell, and change nothing on a non-login shell.



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