From e21625c5bb1b03cad355590021c95009ab4246c5 Mon Sep 17 00:00:00 2001 From: Jakub Jankowski Date: Tue, 21 Nov 2017 03:32:08 +0100 Subject: 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 --- rc.inet1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.inet1 b/rc.inet1 index a70430e..89c006f 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -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 ###################### -- cgit v1.2.3