* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Use same rule for && as
[bpt/emacs.git] / test / indent / shell.sh
index 7906565..74985a4 100755 (executable)
@@ -5,6 +5,12 @@ setlock -n /tmp/getmail.lock && echo getmail isn\'t running
 
 # adsgsdg
 
+if foo; then
+    if bar; then
+       toto
+    fi
+fi                              # bug#15613
+
 case $X in
     foo)
         do_something
@@ -17,6 +23,12 @@ case $X in
         ;;
 esac
 
+{                              # bug#17621
+    foo1 &&
+        foo2 &&
+        bar
+}
+
 echo -n $(( 5 << 2 ))
 # This should not be treated as a heredoc (bug#12770).
 2
@@ -29,7 +41,7 @@ echo $[1<<8]                    # bug#11263
 declare -a VERSION
 for i in $(ls "$PREFIX/sbin") ; do
     echo -e $N')' $i
-    VERSION[${#VERSION[*]}]=$i         #bug#11946.
+    VERSION[${#VERSION[*]}]=$i  bug#11946.
     N=$(($N + 1))
 done