about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Doc/Zsh/builtins.yo1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 44daa251f..70ebb7e23 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-06  Peter Stephenson  <pws@csr.com>
+
+	* 17504: Doc/Zsh/builtins.yo: note that `getopts' doesn't
+	recognise a single `-' as a valid option argument.  The
+	behaviour is consistent with bash and Solaris sh.
+
 2002-08-05  Peter Stephenson  <pws@csr.com>
 
 	* 17502 (with some additional comments): Test/B01cd.ztst,
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 39ba4812b..2d902f336 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -448,6 +448,7 @@ Checks the var(arg)s for legal options.  If the var(arg)s are omitted,
 use the positional parameters.  A valid option argument
 begins with a `tt(PLUS())' or a `tt(-)'.  An argument not beginning with
 a `tt(PLUS())' or a `tt(-)', or the argument `tt(--)', ends the options.
+Note that a single `tt(-)' is not considered a valid option argument.
 var(optstring) contains the letters that tt(getopts)
 recognizes.  If a letter is followed by a `tt(:)', that option
 is expected to have an argument.  The options can be