public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Preferred path setup for cygwin
@ 2011-03-31 19:50 Gary Furash
  2011-03-31 19:54 ` Csaba Raduly
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Furash @ 2011-03-31 19:50 UTC (permalink / raw)
  To: cygwin

For cygwin to work best, should your $PATH be something like:

	[STANDARD WINDOWS PATH]:[CYGWIN PATHS (e.g., usr/bin])

Along with some aliases that ensure that cygwin uses the CYGWIN rather than
the WINDOWS versions of same named programs (e.g., "find")

OR

	[CYGWIN PATHS]:[STANDARD WINDOWS PATHS]


Gary Furash| furashgary@gmail.com | 520-907-2470 | @furashgf (twitter) |
http://gfurash.blogspot.com



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Preferred path setup for cygwin
  2011-03-31 19:50 Preferred path setup for cygwin Gary Furash
@ 2011-03-31 19:54 ` Csaba Raduly
  0 siblings, 0 replies; 2+ messages in thread
From: Csaba Raduly @ 2011-03-31 19:54 UTC (permalink / raw)
  To: cygwin; +Cc: Gary Furash

Hi Gary,

On Thu, Mar 31, 2011 at 7:49 PM, Gary Furash  wrote:
> For cygwin to work best, should your $PATH be something like:
>
>        [STANDARD WINDOWS PATH]:[CYGWIN PATHS (e.g., usr/bin])
>
> Along with some aliases that ensure that cygwin uses the CYGWIN rather than
> the WINDOWS versions of same named programs (e.g., "find")
>
> OR
>
>        [CYGWIN PATHS]:[STANDARD WINDOWS PATHS]

If you want to use Cygwin, it's probably best to keep the Cygwin paths
at the front. The Cygwin installer sets up Bash to do this
automagically: the Windows PATH is imported and transformed into POSIX
path by cygwin.dll (this happens for every Cygwin program), then
/etc/profile prepends the necessary directories ( /usr/local/bin,
/usr/bin, /bin ) to $PATH. Other shells might do similar things.

IMO, the problem with aliases is that they create an illusion, which
can lead to surprises if a Windows program with the same name as a
Cygwin program ever appears in the Windows search path.
At my workplace, we have such occasional surprises caused by ClearCase
and its hostinfo program, which every now and then gets executed by a
configure script (Cygwin does not have hostinfo, so the effect is the
same as if the ClearCase program directory was ahead of Cygwin's).

It is possible to add the Cygwin directories to the Windows path, for
easy access to grep & other tools from a Windows prompt. Adding them
to the beginning would hide the Windows version of find; I don't
consider this a loss :)

Hope this helps,
Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
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:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-31 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 19:50 Preferred path setup for cygwin Gary Furash
2011-03-31 19:54 ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).