From: Gerd Moellmann Date: Wed, 21 Jun 2000 19:54:54 +0000 (+0000) Subject: (sh-while-getopts): Fix handling of X-Git-Tag: emacs-pretest-21.0.90~3149 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16ed8416ae38b89bafb94ea037e8d920790d5852;p=emacs.git (sh-while-getopts): Fix handling of empty option string. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0c14cfcfb55..a1d0d46e93e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2000-06-21 Gerd Moellmann + + * progmodes/sh-script.el (sh-while-getopts): Fix handling of + empty option string. + 2000-06-21 Eli Zaretskii * man.el (man): Doc fix. diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 877b27dbdb8..b2d80a0181d 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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" >