shell.sh 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #!/bin/sh
  2. setlock -n /tmp/getmail.lock && echo getmail isn\'t running
  3. # adsgsdg
  4. foo () {
  5. bar () {
  6. blilbi
  7. }
  8. case toto
  9. in a) hello # KNOWN INDENT BUG
  10. ;; b) hi # KNOWN INDENT BUG
  11. esac
  12. case $toto in
  13. a) echo 1;; b) echo 2;;
  14. c) echo 3;;
  15. esac
  16. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17. *${as_nl}ac_space=\ *)
  18. # `set' does not quote correctly, so add quotes: double-quote
  19. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20. sed -n \
  21. "s/'/'\\\\''/g;
  22. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=/\\1=''/p"
  23. ;; #(
  24. *)
  25. # `set' quotes correctly as required by POSIX, so do not add
  26. # quotes.
  27. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28. ;;
  29. esac |
  30. cat # KNOWN INDENT BUG
  31. case toto in
  32. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  33. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* \
  34. | --exec=* | --exe=* | --ex=*)
  35. exec_prefix=$ac_optarg ;;
  36. 5)
  37. hello ;;
  38. 3) hello $(adfad)
  39. echo esac ;; # KNOWN INDENT BUG
  40. 5) hello ;;
  41. 4) hello ;&
  42. 4) hello ;;&
  43. 5) hello ;;
  44. 5) hello ;;
  45. esac
  46. echo "'" wfgfe
  47. #!/bin/bash
  48. cat << EOF \
  49. | cat sadfsafd \
  50. sadfsafd "KNOWN INDENT BUG" \
  51. | tee -a bug.txt
  52. asdfsaf
  53. This is a test case for a bug in bash shell mode text highlighting
  54. EOF
  55. cat <<EOF1 <<EOF2 # KNOWN INDENT BUG
  56. help1
  57. EOF1
  58. help2
  59. EOF2
  60. }
  61. bar () {
  62. if [ $# == 0 ]; then
  63. while
  64. f # KNOWN INDENT BUG
  65. do
  66. bla;
  67. done
  68. echo "Highlighting is screwed up now"
  69. if [ 1 = 1 ]; then
  70. # adsgsdg
  71. echo "screwed up"
  72. fi
  73. $@ $? $#
  74. for f in *
  75. do
  76. sdfg
  77. done
  78. if swrgfef
  79. then blas
  80. else sdf
  81. fi
  82. fi
  83. }