Browse Source

* contrib/mysql/make-datafile.sh: Eliminate Shellcheck warnings.

* contrib/mysql/sum2xml.sh: Likewise.

Silence these warnings:
      Double quote to prevent globbing and word splitting. [SC2086]
      See if you can use ${variable//search/replace} instead. [SC2001]
dejagnu-1.6.2
Ben Elliston 8 years ago
parent
commit
81651abb04
  1. 5
      ChangeLog
  2. 2
      contrib/mysql/make-datafile.sh
  3. 2
      contrib/mysql/sum2xml.sh

5
ChangeLog

@ -1,3 +1,8 @@
2018-07-20 Ben Elliston <bje@gnu.org>
* contrib/mysql/make-datafile.sh: Eliminate Shellcheck warnings.
* contrib/mysql/sum2xml.sh: Likewise.
2018-07-20 Ben Elliston <bje@gnu.org>
* contrib/compare_tests: Eliminate Shellcheck warnings.

2
contrib/mysql/make-datafile.sh

@ -105,7 +105,7 @@ rm testrun.data
files=$(find . -maxdepth 1 -name '*.data' | tr '\n' ' ')
# Get all the versions in the files, we'll pad rows so all the rows match
versions=$(cut -d ' ' -f 3 $files | sort -V | uniq | tr '\n' ' ')
versions=$(cut -d ' ' -f 3 "$files" | sort -V | uniq | tr '\n' ' ')
for i in ${files}; do
for j in ${versions}; do

2
contrib/mysql/sum2xml.sh

@ -90,7 +90,7 @@ do
fi
echo -n "."
{ echo "<test>"; echo " <input></input>"; echo " <output></output>"; } >> "$outfile"
result=$(echo "$line" | sed -e 's/: .*$//')
result=${line/: *//}
echo " <result>${result}</result>" >> "$outfile"
name=${line/^[A-Z]*: /}
{ echo " <name>${name}</name>"; echo " <prms_id></prms_id>"; echo "</test>"; } >> "$outfile"

Loading…
Cancel
Save