Commit 407e6bee authored by Paul Eggert's avatar Paul Eggert
Browse files

* indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.

This is more portable in shell scripts.
Fixes: bug#19658
parent f6ef8365
2015-01-25 Paul Eggert <eggert@cs.ucla.edu>
* indent/shell.sh (bar): Use '[ $# -eq 0 ]', not '[ $# == 0 ]'.
This is more portable in shell scripts.
Fixes: bug#19658
2015-01-23 Dmitry Gutov <dgutov@yandex.ru> 2015-01-23 Dmitry Gutov <dgutov@yandex.ru>
Fix package tests when TMPDIR is in HOME. (Bug#19657) Fix package tests when TMPDIR is in HOME. (Bug#19657)
......
...@@ -100,7 +100,7 @@ foo () { ...@@ -100,7 +100,7 @@ foo () {
d) d)
echo 3;; echo 3;;
esac esac
case $as_nl`(ac_space=' '; set) 2>&1` in #( case $as_nl`(ac_space=' '; set) 2>&1` in #(
*${as_nl}ac_space=\ *) *${as_nl}ac_space=\ *)
# `set' does not quote correctly, so add quotes: double-quote # `set' does not quote correctly, so add quotes: double-quote
...@@ -117,7 +117,7 @@ foo () { ...@@ -117,7 +117,7 @@ foo () {
esac | esac |
grep '.' | # KNOWN INDENT BUG grep '.' | # KNOWN INDENT BUG
sed 1d sed 1d
case toto in case toto in
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* \
...@@ -133,7 +133,7 @@ foo () { ...@@ -133,7 +133,7 @@ foo () {
5) hello ;; 5) hello ;;
5) hello ;; 5) hello ;;
esac esac
echo "'" wfgfe echo "'" wfgfe
#!/bin/bash #!/bin/bash
...@@ -152,7 +152,7 @@ help2 ...@@ -152,7 +152,7 @@ help2
EOF2 EOF2
} }
bar () { bar () {
if [ $# == 0 ]; then if [ $# -eq 0 ]; then
while while
f # KNOWN INDENT BUG f # KNOWN INDENT BUG
do do
...@@ -163,18 +163,18 @@ bar () { ...@@ -163,18 +163,18 @@ bar () {
# adsgsdg # adsgsdg
echo "screwed up" echo "screwed up"
fi fi
$@ $? $# $@ $? $#
for f in * for f in *
do do
sdfg sdfg
done done
if swrgfef if swrgfef
then blas then blas
else sdf else sdf
fi fi
fi fi
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment