From a8f7d57e830f8eac90e265a566a8ff96c89c8571 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 6 Aug 2002 13:05:48 +0000 Subject: 17504: note that getopts doesn't handle a single `-' as an option argument --- Doc/Zsh/builtins.yo | 1 + 1 file changed, 1 insertion(+) (limited to 'Doc') 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 -- cgit 1.4.1