Commit 16ed8416 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(sh-while-getopts): Fix handling of

empty option string.
parent 9f2bbc92
2000-06-21 Gerd Moellmann <gerd@gnu.org>
* progmodes/sh-script.el (sh-while-getopts): Fix handling of
empty option string.
2000-06-21 Eli Zaretskii <eliz@is.elta.co.il>
* man.el (man): Doc fix.
......
......@@ -3939,7 +3939,7 @@ option followed by a colon `:' if the option accepts an argument."
(while (search-backward ":" v1 t)
(replace-match " ARG] [+-" t t)))
(if (eq (preceding-char) ?-) -5)
(if (length v1) "] ")
(if (and (sequencep v1) (length v1)) "] " "} ")
"[--] ARGS...\"" \n
"exit 2" > \n
"esac" >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment