aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-21 19:54:54 +0000
committerGerd Moellmann2000-06-21 19:54:54 +0000
commit16ed8416ae38b89bafb94ea037e8d920790d5852 (patch)
tree227ecbac8b47c3e2ab6aa862efd9895508bc4a98 /lisp
parent9f2bbc92acfdc96a4ebdec60aa659b2310a25364 (diff)
downloademacs-16ed8416ae38b89bafb94ea037e8d920790d5852.tar.gz
emacs-16ed8416ae38b89bafb94ea037e8d920790d5852.zip
(sh-while-getopts): Fix handling of
empty option string.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/sh-script.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0c14cfcfb55..a1d0d46e93e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12000-06-21 Gerd Moellmann <gerd@gnu.org>
2
3 * progmodes/sh-script.el (sh-while-getopts): Fix handling of
4 empty option string.
5
12000-06-21 Eli Zaretskii <eliz@is.elta.co.il> 62000-06-21 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * man.el (man): Doc fix. 8 * 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."
3939 (while (search-backward ":" v1 t) 3939 (while (search-backward ":" v1 t)
3940 (replace-match " ARG] [+-" t t))) 3940 (replace-match " ARG] [+-" t t)))
3941 (if (eq (preceding-char) ?-) -5) 3941 (if (eq (preceding-char) ?-) -5)
3942 (if (length v1) "] ") 3942 (if (and (sequencep v1) (length v1)) "] " "} ")
3943 "[--] ARGS...\"" \n 3943 "[--] ARGS...\"" \n
3944 "exit 2" > \n 3944 "exit 2" > \n
3945 "esac" > 3945 "esac" >