aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2014-06-20 10:23:30 -0400
committerStefan Monnier <[email protected]>2014-06-20 10:23:30 -0400
commit9e248ebdc71b051911ba1a68187d300bfff39fb3 (patch)
tree32356e67fc5269dfce022f36db137f353611b819 /test
parent58b9840b352eeb11ee1d09f0f3224c4b9ce22fad (diff)
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
align with the surrounding parent. Fixes: debbugs:17721
Diffstat (limited to 'test')
-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 ed6bcf8da3..8e831bb8f1 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -33,6 +33,14 @@ esac
bar
}
+for foo in bar; do # bug#17721
+ [ -e $foo ] && {
+ echo t
+ } && {
+ echo r
+ }
+done
+
echo -n $(( 5 << 2 ))
# This should not be treated as a heredoc (bug#12770).
2