aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2012-07-17 04:38:12 -0400
committerStefan Monnier2012-07-17 04:38:12 -0400
commitefc26dbecd1b548d6f44267ce13b56dbad8ab783 (patch)
tree856fe3b0b08897bccacdaab5b1a0f30e7177c1a1 /test
parentf5695c9afd17315a5f771091044ffc19ad8b7b2b (diff)
downloademacs-efc26dbecd1b548d6f44267ce13b56dbad8ab783.tar.gz
emacs-efc26dbecd1b548d6f44267ce13b56dbad8ab783.zip
* lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR"
as not-a-comment. * test/indent/shell.sh: Add test case for ${#VAR}. Fixes: debbugs:11946
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog2
-rwxr-xr-xtest/indent/shell.sh8
2 files changed, 10 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index ce7e2f02284..f82a395e548 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,7 @@
12012-07-17 Stefan Monnier <monnier@iro.umontreal.ca> 12012-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * indent/shell.sh: Add test case for ${#VAR}.
4
3 * indent/latex-mode.tex: New file. 5 * indent/latex-mode.tex: New file.
4 6
52012-07-11 Stefan Monnier <monnier@iro.umontreal.ca> 72012-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/test/indent/shell.sh b/test/indent/shell.sh
index 26a01dc3bda..957fe74fdee 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -1,9 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2# -*- eval: (bug-reference-mode 1) -*-
2 3
3setlock -n /tmp/getmail.lock && echo getmail isn\'t running 4setlock -n /tmp/getmail.lock && echo getmail isn\'t running
4 5
5# adsgsdg 6# adsgsdg
6 7
8declare -a VERSION
9for i in $(ls "$PREFIX/sbin") ; do
10 echo -e $N')' $i
11 VERSION[${#VERSION[*]}]=$i #bug#11946.
12 N=$(($N + 1))
13done
14
7foo () { 15foo () {
8 16
9 bar () { 17 bar () {