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-11-29 19:24:59 +0300
committerDavid Starks-Browning <starksb@ebi.ac.uk>2000-11-29 19:24:59 +0300
commitab96569985d746099832081b2f4fb5922522186d (patch)
tree3812208bb4ba2a121b5101ee0b9bdf4b79b7c808 /winsup/doc/how-using.texinfo
parent95ec0f241f9fb7fd6c4bc9d378de651f4bded0ad (diff)
New entry "Bash says "command not found", but it's right there!"
Diffstat (limited to 'winsup/doc/how-using.texinfo')
-rw-r--r--winsup/doc/how-using.texinfo21
1 files changed, 21 insertions, 0 deletions
diff --git a/winsup/doc/how-using.texinfo b/winsup/doc/how-using.texinfo
index 506e36f77..3cb6840b2 100644
--- a/winsup/doc/how-using.texinfo
+++ b/winsup/doc/how-using.texinfo
@@ -29,6 +29,27 @@ 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 Bash says "command not found", but it's right there!
+
+If you compile a program, you might find that you can't run it:
+
+@example
+ bash$ gcc -o hello hello.c
+ bash$ hello
+ bash: hello: command not found
+@end example
+
+Unlike Windows, bash does not look for programs in @samp{.} (the current
+directory) by default. You can add @samp{.} to your PATH (see above),
+but this is not recommended (at least on UNIX) for security reasons.
+Just tell bash where to find it, when you type it on the command line:
+
+@example
+ bash$ gcc -o hello hello.c
+ bash$ ./hello
+ Hello World!
+@end example
+
@subsection How do I convert between Windows and UNIX paths?
Use the 'cygpath' utility. Type '@code{cygpath}' with no arguments to