[rear-devel] [rear/rear] f99ee1: Use [*] instead of [@] for array expansion inside ...

Renaud Métrich noreply at github.com
Mon Mar 25 10:12:59 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: f99ee1f1d92511ae5d6da490fda535ec20c4db57
      https://github.com/rear/rear/commit/f99ee1f1d92511ae5d6da490fda535ec20c4db57
  Author: Pavel Cahyna <pcahyna at redhat.com>
  Date:   2019-03-22 (Fri, 22 Mar 2019)

  Changed paths:
    M usr/share/rear/finalize/Linux-ppc64le/680_install_PPC_bootlist.sh

  Log Message:
  -----------
  Use [*] instead of [@] for array expansion inside a string

"aaa ${boot_list[@]} bbb" splits the string into several strings:
boot_list=( foo bar )
"aaa ${boot_list[@]} bbb" -> "aaa foo" "bar bbb" instead of
"aaa foo bar bbb". This is probably unintended, although harmless in
this case.
Change [@] to a more intuitive [*], which keeps the result of
expansion as one string.


  Commit: e14baee63576232830abc0ff1f211d23b5454967
      https://github.com/rear/rear/commit/e14baee63576232830abc0ff1f211d23b5454967
  Author: Renaud Métrich <1163635+rmetrich at users.noreply.github.com>
  Date:   2019-03-25 (Mon, 25 Mar 2019)

  Changed paths:
    M usr/share/rear/finalize/Linux-ppc64le/680_install_PPC_bootlist.sh

  Log Message:
  -----------
  Merge pull request #2098 from pcahyna/logprint-boot_list-nosplit

Use [*] instead of [@] for array expansion inside a string


Compare: https://github.com/rear/rear/compare/fa5623aeb5bb...e14baee63576


More information about the rear-devel mailing list