diff options
| author | Stefan Monnier | 2012-07-17 04:38:12 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-07-17 04:38:12 -0400 |
| commit | efc26dbecd1b548d6f44267ce13b56dbad8ab783 (patch) | |
| tree | 856fe3b0b08897bccacdaab5b1a0f30e7177c1a1 /test | |
| parent | f5695c9afd17315a5f771091044ffc19ad8b7b2b (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rwxr-xr-x | test/indent/shell.sh | 8 |
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 @@ | |||
| 1 | 2012-07-17 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-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 | ||
| 5 | 2012-07-11 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2012-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 | ||
| 3 | setlock -n /tmp/getmail.lock && echo getmail isn\'t running | 4 | setlock -n /tmp/getmail.lock && echo getmail isn\'t running |
| 4 | 5 | ||
| 5 | # adsgsdg | 6 | # adsgsdg |
| 6 | 7 | ||
| 8 | declare -a VERSION | ||
| 9 | for i in $(ls "$PREFIX/sbin") ; do | ||
| 10 | echo -e $N')' $i | ||
| 11 | VERSION[${#VERSION[*]}]=$i #bug#11946. | ||
| 12 | N=$(($N + 1)) | ||
| 13 | done | ||
| 14 | |||
| 7 | foo () { | 15 | foo () { |
| 8 | 16 | ||
| 9 | bar () { | 17 | bar () { |