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>2002-01-24 01:35:58 +0300
committerDavid Starks-Browning <starksb@ebi.ac.uk>2002-01-24 01:35:58 +0300
commitc9399dd5d7b8462a1d8dd0e6537c2faef2540c14 (patch)
treeee2540ab45c07a25d49ae03a946757fb396b21e0 /winsup/doc
parent3c07fbebf8023eb8daffc9f3931b3652d5b7fb54 (diff)
clarify "why doesn't my shell script work"
Diffstat (limited to 'winsup/doc')
-rw-r--r--winsup/doc/how-using.texinfo8
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/doc/how-using.texinfo b/winsup/doc/how-using.texinfo
index 94504d05c..c9b9e59f9 100644
--- a/winsup/doc/how-using.texinfo
+++ b/winsup/doc/how-using.texinfo
@@ -233,17 +233,19 @@ bash$ mkdir -p path/to/new/dir
@subsection Why doesn't my shell script work?
There are two basic problems you might run into. One is the fact that
-/bin/sh is really ash, and is missing some features you might expect in
-/bin/sh. For example:
+/bin/sh is really ash, and is missing some features you might expect
+in /bin/sh, particularly if you are used to /bin/sh actually being
+bash (Linux) or ksh (Tru64). For example:
@itemize bullet
@item No job control
@item No getopts
+@item No let
@item No functions exported
@item Must use `.' instead of `source' (true of sh and ksh too, not just ash)
@end itemize
-Or it could be a permission problem, and Cygwin doesn't understand that
+Or, it could be a permission problem, and Cygwin doesn't understand that
your script is executable. Because @samp{chmod} may not work (see FAQ
entry above), Cygwin must read the contents of files to determine if
they are executable. If your script does not start with