Skip to content
  • Justin's avatar
    9503434d
    Fix IPS array variable expansion · 9503434d
    Justin authored
    $IPS only expands to the first ip address in the array:
    
    justin@box:~$ declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
    justin@box:~$ echo $IPS
    10.10.1.3
    justin@box:~$ echo ${IPS[@]}
    10.10.1.3 10.10.1.4 10.10.1.5
    9503434d
    Fix IPS array variable expansion
    Justin authored
    $IPS only expands to the first ip address in the array:
    
    justin@box:~$ declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5)
    justin@box:~$ echo $IPS
    10.10.1.3
    justin@box:~$ echo ${IPS[@]}
    10.10.1.3 10.10.1.4 10.10.1.5
Loading