Files
kubernetes/hack
Ismo Puustinen a911034e01 verify-generated-files-remake.sh: do not mix strings and arrays.
The pattern used in the file is this:

  echo "  ${X[@]:-(none)}"

What happens is that the array is expanded to separate strings, and it
is checked if that's set (for the default value assignment). However,
the correct way is to check if the concatenated array string is set to
avoid a type mismatch:

  echo "  ${X[*]:-(none)}"

Tests show that at least bash 4.4.23 behaves the same:

  X=(foo bar)
  echo "  ${X[@]:-(none)}"
  echo "  ${X[*]:-(none)}"

  X=()
  echo "  ${X[@]:-(none)}"
  echo "  ${X[*]:-(none)}"

produces:

  foo bar
  foo bar
  (none)
  (none)
2019-01-29 13:11:25 +02:00
..
2019-01-19 13:58:58 +01:00
2019-01-22 08:39:55 +08:00
2019-01-22 08:39:55 +08:00
2019-01-22 08:39:55 +08:00
2019-01-22 08:39:55 +08:00
2018-12-18 16:06:56 -08:00
2018-12-18 16:06:56 -08:00
2018-12-27 12:05:45 -08:00