diff options
author | Jakub Jankowski <shasta@toxcorp.com> | 2017-11-21 03:32:08 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-11-21 00:07:59 -0600 |
commit | e21625c5bb1b03cad355590021c95009ab4246c5 (patch) | |
tree | 32acdb5909972462a7f2bbcbb5e6ec1c45127773 | |
parent | 5d8fad3dc13963fa19ca02913f8c4f12ab3321c1 (diff) | |
download | slacknetsetup-e21625c5bb1b03cad355590021c95009ab4246c5.tar.xz |
rc.inet1: Use ${array[*]} not ${array[@]} to produce a string
This is the correct usage to produce one string from all
elements of an array.
foo[0]=b
foo[1]=a
foo[2]=r
"${foo[@]}" here would mean "b" "a" "r"
"${foo[*]}" however: "b a r", and that's what we mean when
logging it.
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ do i=$(($i+1)) done if [ "$DEBUG_ETH_UP" = "yes" ]; then - echo "/etc/rc.d/rc.inet1: List of interfaces: '${IFNAME[@]}'" | $LOGGER + echo "/etc/rc.d/rc.inet1: List of interfaces: '${IFNAME[*]}'" | $LOGGER fi ###################### |