Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Starks-Browning <starksb@ebi.ac.uk>2000-06-13 20:30:58 +0400
committerDavid Starks-Browning <starksb@ebi.ac.uk>2000-06-13 20:30:58 +0400
commitfe871355b5ef09d503dd1fbc6330731a802b6fcd (patch)
treea67759540ce6d7f42c4574198122fbba1c9f0ca1 /winsup/doc/how.texinfo
parenta15ada703498a208b7ad3a7e9aa1fe1f92dd85ee (diff)
New entry: "How should I set my PATH?"
Diffstat (limited to 'winsup/doc/how.texinfo')
-rw-r--r--winsup/doc/how.texinfo28
1 files changed, 28 insertions, 0 deletions
diff --git a/winsup/doc/how.texinfo b/winsup/doc/how.texinfo
index 9b5c33f24..c687f0cac 100644
--- a/winsup/doc/how.texinfo
+++ b/winsup/doc/how.texinfo
@@ -117,6 +117,34 @@ nobody knows the answer.
@section Using Cygwin
+@subsection How should I set my PATH?
+
+If you look at the "Cygwin 1.1.0" (or similar) shortcut created in the
+"Cygnus Solutions" programs folder, you'll see that it runs
+@code{C:\cygwin\bin\cygwin.bat} (assuming your root is
+@code{C:\cygwin}). The contents should look something like this:
+
+@example
+ @echo off
+ SET MAKE_MODE=unix
+ SET PATH=C:\cygwin\bin;C:\cygwin\usr\local\bin;%PATH%
+ bash
+@end example
+
+Effectively, this @strong{prepends} /usr/bin and /usr/local/bin to your
+Windows system path. If you choose to reset your PATH, say in
+$HOME/.bashrc, then you should follow this rule. You @strong{must} have
+@code{/usr/bin} in your PATH @strong{before} any Windows system
+directories. Otherwise you will likely encounter all sorts of problems
+running Cygwin applications.
+
+If you haven't messed up the default mounts, then @code{/bin} and
+@code{/usr/bin} are the same location, so you only need one of them in
+your PATH. You should use @code{/usr/local/bin} for installing
+additional Cygwin applications that are not part of the core net
+release. (That is, anything not found in an ftp mirror of @code{latest}
+and installed by @code{setup.exe}.)
+
@subsection How do I set /etc up?
@strong{(Please note: This section has not yet been updated for the latest