aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog6
-rwxr-xr-xtest/indent/shell.sh16
2 files changed, 14 insertions, 8 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 5a4e616f6c6..d8cd36790f2 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
12015-01-25 Paul Eggert <eggert@cs.ucla.edu>
2
3 * indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.
4 This is more portable in shell scripts.
5 Fixes: bug#19658
6
12015-01-23 Dmitry Gutov <dgutov@yandex.ru> 72015-01-23 Dmitry Gutov <dgutov@yandex.ru>
2 8
3 Fix package tests when TMPDIR is in HOME. (Bug#19657) 9 Fix package tests when TMPDIR is in HOME. (Bug#19657)
diff --git a/test/indent/shell.sh b/test/indent/shell.sh
index 14f67744ff2..b0f69bd9720 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -100,7 +100,7 @@ foo () {
100 d) 100 d)
101 echo 3;; 101 echo 3;;
102 esac 102 esac
103 103
104 case $as_nl`(ac_space=' '; set) 2>&1` in #( 104 case $as_nl`(ac_space=' '; set) 2>&1` in #(
105 *${as_nl}ac_space=\ *) 105 *${as_nl}ac_space=\ *)
106 # `set' does not quote correctly, so add quotes: double-quote 106 # `set' does not quote correctly, so add quotes: double-quote
@@ -117,7 +117,7 @@ foo () {
117 esac | 117 esac |
118 grep '.' | # KNOWN INDENT BUG 118 grep '.' | # KNOWN INDENT BUG
119 sed 1d 119 sed 1d
120 120
121 case toto in 121 case toto in
122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* \ 123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* \
@@ -133,7 +133,7 @@ foo () {
133 5) hello ;; 133 5) hello ;;
134 5) hello ;; 134 5) hello ;;
135 esac 135 esac
136 136
137 echo "'" wfgfe 137 echo "'" wfgfe
138 138
139 #!/bin/bash 139 #!/bin/bash
@@ -152,7 +152,7 @@ help2
152EOF2 152EOF2
153} 153}
154bar () { 154bar () {
155 if [ $# == 0 ]; then 155 if [ $# -eq 0 ]; then
156 while 156 while
157 f # KNOWN INDENT BUG 157 f # KNOWN INDENT BUG
158 do 158 do
@@ -163,18 +163,18 @@ bar () {
163 # adsgsdg 163 # adsgsdg
164 echo "screwed up" 164 echo "screwed up"
165 fi 165 fi
166 166
167 $@ $? $# 167 $@ $? $#
168 168
169 for f in * 169 for f in *
170 do 170 do
171 sdfg 171 sdfg
172 done 172 done
173 173
174 if swrgfef 174 if swrgfef
175 then blas 175 then blas
176 else sdf 176 else sdf
177 fi 177 fi
178 178
179 fi 179 fi
180} 180}