aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/shell.sh
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2012-07-17 04:38:12 -0400
committerStefan Monnier <[email protected]>2012-07-17 04:38:12 -0400
commitefc26dbecd1b548d6f44267ce13b56dbad8ab783 (patch)
tree856fe3b0b08897bccacdaab5b1a0f30e7177c1a1 /test/indent/shell.sh
parentf5695c9afd17315a5f771091044ffc19ad8b7b2b (diff)
* 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/indent/shell.sh')
-rwxr-xr-xtest/indent/shell.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/indent/shell.sh b/test/indent/shell.sh
index 26a01dc3bd..957fe74fde 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -1,9 +1,17 @@
#!/bin/sh
+# -*- eval: (bug-reference-mode 1) -*-
setlock -n /tmp/getmail.lock && echo getmail isn\'t running
# adsgsdg
+declare -a VERSION
+for i in $(ls "$PREFIX/sbin") ; do
+ echo -e $N')' $i
+ VERSION[${#VERSION[*]}]=$i #bug#11946.
+ N=$(($N + 1))
+done
+
foo () {
bar () {