ShellCheck - shell script analysis tool version: 0.10.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.nwaM75YTBJ and /tmp/tmp.9B1SQdqcU0 Tree base: 315f423be0d1 ("net: sparx5/lan969x: Add support for ethtool pause parameters") Now at: c71c77b19daf ("selftests: forwarding: Reorder (ar)ping arguments to obey POSIX getopt") ====== Checking before the patch ====== Checking tools/testing/selftests/net/forwarding/custom_multipath_hash.sh - feef75360916395bb50579a2362a27bb961763cb35917e4c01701137e61cacd9 In custom_multipath_hash.sh line 56: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In custom_multipath_hash.sh line 57: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In custom_multipath_hash.sh line 58: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In custom_multipath_hash.sh line 63: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In custom_multipath_hash.sh line 64: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In custom_multipath_hash.sh line 65: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In custom_multipath_hash.sh line 70: simple_if_init $rp1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$rp1" 198.51.100.1/24 2001:db8:1::1/64 In custom_multipath_hash.sh line 71: __simple_if_init $rp11 v$rp1 192.0.2.1/28 2001:db8:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp11" v"$rp1" 192.0.2.1/28 2001:db8:2::1/64 In custom_multipath_hash.sh line 72: __simple_if_init $rp12 v$rp1 192.0.2.17/28 2001:db8:3::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp12" v"$rp1" 192.0.2.17/28 2001:db8:3::1/64 In custom_multipath_hash.sh line 74: ip route add vrf v$rp1 203.0.113.0/24 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$rp1" 203.0.113.0/24 \ In custom_multipath_hash.sh line 75: nexthop via 192.0.2.2 dev $rp11 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.2 dev "$rp11" \ In custom_multipath_hash.sh line 76: nexthop via 192.0.2.18 dev $rp12 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.18 dev "$rp12" In custom_multipath_hash.sh line 78: ip -6 route add vrf v$rp1 2001:db8:4::/64 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$rp1" 2001:db8:4::/64 \ In custom_multipath_hash.sh line 79: nexthop via 2001:db8:2::2 dev $rp11 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:2::2 dev "$rp11" \ In custom_multipath_hash.sh line 80: nexthop via 2001:db8:3::2 dev $rp12 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:3::2 dev "$rp12" In custom_multipath_hash.sh line 85: ip -6 route del vrf v$rp1 2001:db8:4::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$rp1" 2001:db8:4::/64 In custom_multipath_hash.sh line 87: ip route del vrf v$rp1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$rp1" 203.0.113.0/24 In custom_multipath_hash.sh line 89: __simple_if_fini $rp12 192.0.2.17/28 2001:db8:3::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp12" 192.0.2.17/28 2001:db8:3::1/64 In custom_multipath_hash.sh line 90: __simple_if_fini $rp11 192.0.2.1/28 2001:db8:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp11" 192.0.2.1/28 2001:db8:2::1/64 In custom_multipath_hash.sh line 91: simple_if_fini $rp1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$rp1" 198.51.100.1/24 2001:db8:1::1/64 In custom_multipath_hash.sh line 96: simple_if_init $rp2 203.0.113.1/24 2001:db8:4::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$rp2" 203.0.113.1/24 2001:db8:4::1/64 In custom_multipath_hash.sh line 97: __simple_if_init $rp21 v$rp2 192.0.2.2/28 2001:db8:2::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp21" v"$rp2" 192.0.2.2/28 2001:db8:2::2/64 In custom_multipath_hash.sh line 98: __simple_if_init $rp22 v$rp2 192.0.2.18/28 2001:db8:3::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp22" v"$rp2" 192.0.2.18/28 2001:db8:3::2/64 In custom_multipath_hash.sh line 100: ip route add vrf v$rp2 198.51.100.0/24 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$rp2" 198.51.100.0/24 \ In custom_multipath_hash.sh line 101: nexthop via 192.0.2.1 dev $rp21 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.1 dev "$rp21" \ In custom_multipath_hash.sh line 102: nexthop via 192.0.2.17 dev $rp22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.17 dev "$rp22" In custom_multipath_hash.sh line 104: ip -6 route add vrf v$rp2 2001:db8:1::/64 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$rp2" 2001:db8:1::/64 \ In custom_multipath_hash.sh line 105: nexthop via 2001:db8:2::1 dev $rp21 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:2::1 dev "$rp21" \ In custom_multipath_hash.sh line 106: nexthop via 2001:db8:3::1 dev $rp22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:3::1 dev "$rp22" In custom_multipath_hash.sh line 111: ip -6 route del vrf v$rp2 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$rp2" 2001:db8:1::/64 In custom_multipath_hash.sh line 113: ip route del vrf v$rp2 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$rp2" 198.51.100.0/24 In custom_multipath_hash.sh line 115: __simple_if_fini $rp22 192.0.2.18/28 2001:db8:3::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp22" 192.0.2.18/28 2001:db8:3::2/64 In custom_multipath_hash.sh line 116: __simple_if_fini $rp21 192.0.2.2/28 2001:db8:2::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp21" 192.0.2.2/28 2001:db8:2::2/64 In custom_multipath_hash.sh line 117: simple_if_fini $rp2 203.0.113.1/24 2001:db8:4::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$rp2" 203.0.113.1/24 2001:db8:4::1/64 In custom_multipath_hash.sh line 122: simple_if_init $h2 203.0.113.2/24 2001:db8:4::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:4::2/64 In custom_multipath_hash.sh line 123: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In custom_multipath_hash.sh line 124: ip -6 route add vrf v$h2 default via 2001:db8:4::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:4::1 dev "$h2" In custom_multipath_hash.sh line 129: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In custom_multipath_hash.sh line 130: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In custom_multipath_hash.sh line 131: simple_if_fini $h2 203.0.113.2/24 2001:db8:4::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:4::2/64 In custom_multipath_hash.sh line 174: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In custom_multipath_hash.sh line 179: ping6_test $h1 2001:db8:4::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:4::2 In custom_multipath_hash.sh line 184: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 186: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 191: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 193: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 198: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 200: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In custom_multipath_hash.sh line 205: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 207: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In custom_multipath_hash.sh line 212: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 214: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 219: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 221: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 227: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In custom_multipath_hash.sh line 235: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 237: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In custom_multipath_hash.sh line 242: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 244: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In custom_multipath_hash.sh line 251: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In custom_multipath_hash.sh line 255: local t0_rp11=$(link_stats_tx_packets_get $rp11) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_rp11=$(link_stats_tx_packets_get "$rp11") In custom_multipath_hash.sh line 256: local t0_rp12=$(link_stats_tx_packets_get $rp12) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_rp12=$(link_stats_tx_packets_get "$rp12") In custom_multipath_hash.sh line 260: local t1_rp11=$(link_stats_tx_packets_get $rp11) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_rp11=$(link_stats_tx_packets_get "$rp11") In custom_multipath_hash.sh line 261: local t1_rp12=$(link_stats_tx_packets_get $rp12) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_rp12=$(link_stats_tx_packets_get "$rp12") In custom_multipath_hash.sh line 269: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In custom_multipath_hash.sh line 270: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In custom_multipath_hash.sh line 372: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh - 445306b7293eb5abcc5103adcd817f49fc36f06a5909e8bc59e17582e8a25de0 In gre_custom_multipath_hash.sh line 89: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In gre_custom_multipath_hash.sh line 90: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In gre_custom_multipath_hash.sh line 91: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In gre_custom_multipath_hash.sh line 96: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In gre_custom_multipath_hash.sh line 97: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In gre_custom_multipath_hash.sh line 98: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In gre_custom_multipath_hash.sh line 103: simple_if_init $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In gre_custom_multipath_hash.sh line 104: __simple_if_init $ul1 v$ol1 192.0.2.17/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul1" v"$ol1" 192.0.2.17/28 In gre_custom_multipath_hash.sh line 106: tunnel_create g1 gre 192.0.2.1 192.0.2.2 tos inherit dev v$ol1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tunnel_create g1 gre 192.0.2.1 192.0.2.2 tos inherit dev v"$ol1" In gre_custom_multipath_hash.sh line 107: __simple_if_init g1 v$ol1 192.0.2.1/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g1 v"$ol1" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 108: ip route add vrf v$ol1 192.0.2.2/32 via 192.0.2.18 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 192.0.2.2/32 via 192.0.2.18 In gre_custom_multipath_hash.sh line 110: ip route add vrf v$ol1 203.0.113.0/24 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 203.0.113.0/24 dev g1 In gre_custom_multipath_hash.sh line 111: ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol1" 2001:db8:2::/64 dev g1 In gre_custom_multipath_hash.sh line 116: ip -6 route del vrf v$ol1 2001:db8:2::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol1" 2001:db8:2::/64 In gre_custom_multipath_hash.sh line 117: ip route del vrf v$ol1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 203.0.113.0/24 In gre_custom_multipath_hash.sh line 119: ip route del vrf v$ol1 192.0.2.2/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 123: __simple_if_fini $ul1 192.0.2.17/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul1" 192.0.2.17/28 In gre_custom_multipath_hash.sh line 124: simple_if_fini $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In gre_custom_multipath_hash.sh line 129: simple_if_init $ul21 192.0.2.18/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul21" 192.0.2.18/28 In gre_custom_multipath_hash.sh line 130: __simple_if_init $ul22 v$ul21 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul22" v"$ul21" In gre_custom_multipath_hash.sh line 131: vlan_create $ul22 111 v$ul21 192.0.2.33/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 111 v"$ul21" 192.0.2.33/28 In gre_custom_multipath_hash.sh line 132: vlan_create $ul22 222 v$ul21 192.0.2.49/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 222 v"$ul21" 192.0.2.49/28 In gre_custom_multipath_hash.sh line 134: ip route add vrf v$ul21 192.0.2.1/32 via 192.0.2.17 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul21" 192.0.2.1/32 via 192.0.2.17 In gre_custom_multipath_hash.sh line 135: ip route add vrf v$ul21 192.0.2.2/32 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul21" 192.0.2.2/32 \ In gre_custom_multipath_hash.sh line 142: ip route del vrf v$ul21 192.0.2.2/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul21" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 143: ip route del vrf v$ul21 192.0.2.1/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul21" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 145: vlan_destroy $ul22 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 222 In gre_custom_multipath_hash.sh line 146: vlan_destroy $ul22 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 111 In gre_custom_multipath_hash.sh line 147: __simple_if_fini $ul22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul22" In gre_custom_multipath_hash.sh line 148: simple_if_fini $ul21 192.0.2.18/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul21" 192.0.2.18/28 In gre_custom_multipath_hash.sh line 153: simple_if_init $ul31 192.0.2.65/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul31" 192.0.2.65/28 In gre_custom_multipath_hash.sh line 154: __simple_if_init $ul32 v$ul31 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul32" v"$ul31" In gre_custom_multipath_hash.sh line 155: vlan_create $ul32 111 v$ul31 192.0.2.34/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 111 v"$ul31" 192.0.2.34/28 In gre_custom_multipath_hash.sh line 156: vlan_create $ul32 222 v$ul31 192.0.2.50/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 222 v"$ul31" 192.0.2.50/28 In gre_custom_multipath_hash.sh line 158: ip route add vrf v$ul31 192.0.2.2/32 via 192.0.2.66 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul31" 192.0.2.2/32 via 192.0.2.66 In gre_custom_multipath_hash.sh line 159: ip route add vrf v$ul31 192.0.2.1/32 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul31" 192.0.2.1/32 \ In gre_custom_multipath_hash.sh line 163: tc qdisc add dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$ul32" clsact In gre_custom_multipath_hash.sh line 164: tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 111 prot 802.1Q \ In gre_custom_multipath_hash.sh line 166: tc filter add dev $ul32 ingress pref 222 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 222 prot 802.1Q \ In gre_custom_multipath_hash.sh line 172: tc qdisc del dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$ul32" clsact In gre_custom_multipath_hash.sh line 174: ip route del vrf v$ul31 192.0.2.1/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul31" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 175: ip route del vrf v$ul31 192.0.2.2/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul31" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 177: vlan_destroy $ul32 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 222 In gre_custom_multipath_hash.sh line 178: vlan_destroy $ul32 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 111 In gre_custom_multipath_hash.sh line 179: __simple_if_fini $ul32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul32" In gre_custom_multipath_hash.sh line 180: simple_if_fini $ul31 192.0.2.65/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul31" 192.0.2.65/28 In gre_custom_multipath_hash.sh line 185: simple_if_init $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In gre_custom_multipath_hash.sh line 186: __simple_if_init $ul4 v$ol4 192.0.2.66/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul4" v"$ol4" 192.0.2.66/28 In gre_custom_multipath_hash.sh line 188: tunnel_create g2 gre 192.0.2.2 192.0.2.1 tos inherit dev v$ol4 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tunnel_create g2 gre 192.0.2.2 192.0.2.1 tos inherit dev v"$ol4" In gre_custom_multipath_hash.sh line 189: __simple_if_init g2 v$ol4 192.0.2.2/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g2 v"$ol4" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 190: ip route add vrf v$ol4 192.0.2.1/32 via 192.0.2.65 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 192.0.2.1/32 via 192.0.2.65 In gre_custom_multipath_hash.sh line 192: ip route add vrf v$ol4 198.51.100.0/24 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 198.51.100.0/24 dev g2 In gre_custom_multipath_hash.sh line 193: ip -6 route add vrf v$ol4 2001:db8:1::/64 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:1::/64 dev g2 In gre_custom_multipath_hash.sh line 198: ip -6 route del vrf v$ol4 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:1::/64 In gre_custom_multipath_hash.sh line 199: ip route del vrf v$ol4 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 198.51.100.0/24 In gre_custom_multipath_hash.sh line 201: ip route del vrf v$ol4 192.0.2.1/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 205: __simple_if_fini $ul4 192.0.2.66/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul4" 192.0.2.66/28 In gre_custom_multipath_hash.sh line 206: simple_if_fini $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In gre_custom_multipath_hash.sh line 211: simple_if_init $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:2::2/64 In gre_custom_multipath_hash.sh line 212: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In gre_custom_multipath_hash.sh line 213: ip -6 route add vrf v$h2 default via 2001:db8:2::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:2::1 dev "$h2" In gre_custom_multipath_hash.sh line 218: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In gre_custom_multipath_hash.sh line 219: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In gre_custom_multipath_hash.sh line 220: simple_if_fini $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:2::2/64 In gre_custom_multipath_hash.sh line 269: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In gre_custom_multipath_hash.sh line 274: ping6_test $h1 2001:db8:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:2::2 In gre_custom_multipath_hash.sh line 279: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 281: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 286: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 288: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 293: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 295: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In gre_custom_multipath_hash.sh line 300: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 302: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In gre_custom_multipath_hash.sh line 307: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 309: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 314: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 316: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 322: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In gre_custom_multipath_hash.sh line 330: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 332: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In gre_custom_multipath_hash.sh line 337: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 339: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In gre_custom_multipath_hash.sh line 346: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In gre_custom_multipath_hash.sh line 350: local t0_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_111=$(tc_rule_stats_get "$ul32" 111 ingress) In gre_custom_multipath_hash.sh line 351: local t0_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_222=$(tc_rule_stats_get "$ul32" 222 ingress) In gre_custom_multipath_hash.sh line 355: local t1_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_111=$(tc_rule_stats_get "$ul32" 111 ingress) In gre_custom_multipath_hash.sh line 356: local t1_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_222=$(tc_rule_stats_get "$ul32" 222 ingress) In gre_custom_multipath_hash.sh line 364: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In gre_custom_multipath_hash.sh line 365: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In gre_custom_multipath_hash.sh line 464: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/ip6_forward_instats_vrf.sh - 51b183061a61f70f33d0edb53e8a0e0c4837b86543d268b3bf48cfdcda42e179 In ip6_forward_instats_vrf.sh line 17: require_command $TROUTE6 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TROUTE6" In ip6_forward_instats_vrf.sh line 21: simple_if_init $h1 2001:1:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 2001:1:1::2/64 In ip6_forward_instats_vrf.sh line 22: ip -6 route add vrf v$h1 2001:1:2::/64 via 2001:1:1::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" 2001:1:2::/64 via 2001:1:1::1 In ip6_forward_instats_vrf.sh line 27: ip -6 route del vrf v$h1 2001:1:2::/64 via 2001:1:1::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" 2001:1:2::/64 via 2001:1:1::1 In ip6_forward_instats_vrf.sh line 28: simple_if_fini $h1 2001:1:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 2001:1:1::2/64 In ip6_forward_instats_vrf.sh line 34: __simple_if_init $rtr1 router 2001:1:1::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rtr1" router 2001:1:1::1/64 In ip6_forward_instats_vrf.sh line 35: __simple_if_init $rtr2 router 2001:1:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rtr2" router 2001:1:2::1/64 In ip6_forward_instats_vrf.sh line 36: mtu_set $rtr2 1280 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_set "$rtr2" 1280 In ip6_forward_instats_vrf.sh line 41: mtu_restore $rtr2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_restore "$rtr2" In ip6_forward_instats_vrf.sh line 42: __simple_if_fini $rtr2 2001:1:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rtr2" 2001:1:2::1/64 In ip6_forward_instats_vrf.sh line 43: __simple_if_fini $rtr1 2001:1:1::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rtr1" 2001:1:1::1/64 In ip6_forward_instats_vrf.sh line 49: simple_if_init $h2 2001:1:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 2001:1:2::2/64 In ip6_forward_instats_vrf.sh line 50: ip -6 route add vrf v$h2 2001:1:1::/64 via 2001:1:2::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" 2001:1:1::/64 via 2001:1:2::1 In ip6_forward_instats_vrf.sh line 51: mtu_set $h2 1280 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_set "$h2" 1280 In ip6_forward_instats_vrf.sh line 56: mtu_restore $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_restore "$h2" In ip6_forward_instats_vrf.sh line 57: ip -6 route del vrf v$h2 2001:1:1::/64 via 2001:1:2::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" 2001:1:1::/64 via 2001:1:2::1 In ip6_forward_instats_vrf.sh line 58: simple_if_fini $h2 2001:1:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 2001:1:2::2/64 In ip6_forward_instats_vrf.sh line 93: local t0=$(ipv6_stats_get $rtr1 Ip6InTooBigErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InTooBigErrors) In ip6_forward_instats_vrf.sh line 94: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 97: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 98: $PING6 -s 1300 2001:1:2::2 -c 1 -w $PING_TIMEOUT &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" -s 1300 2001:1:2::2 -c 1 -w "$PING_TIMEOUT" &> /dev/null In ip6_forward_instats_vrf.sh line 100: local t1=$(ipv6_stats_get $rtr1 Ip6InTooBigErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InTooBigErrors) In ip6_forward_instats_vrf.sh line 110: local t0=$(ipv6_stats_get $rtr1 Ip6InHdrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InHdrErrors) In ip6_forward_instats_vrf.sh line 111: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 115: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 116: $TROUTE6 2001:1:2::2 &> /dev/null ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$TROUTE6" 2001:1:2::2 &> /dev/null In ip6_forward_instats_vrf.sh line 118: local t1=$(ipv6_stats_get $rtr1 Ip6InHdrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InHdrErrors) In ip6_forward_instats_vrf.sh line 128: local t0=$(ipv6_stats_get $rtr1 Ip6InAddrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InAddrErrors) In ip6_forward_instats_vrf.sh line 129: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 133: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 134: $PING6 2001:1:2::2 -c 1 -w $PING_TIMEOUT &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" 2001:1:2::2 -c 1 -w "$PING_TIMEOUT" &> /dev/null In ip6_forward_instats_vrf.sh line 137: local t1=$(ipv6_stats_get $rtr1 Ip6InAddrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InAddrErrors) In ip6_forward_instats_vrf.sh line 147: local t0=$(ipv6_stats_get $rtr1 Ip6InDiscards) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InDiscards) In ip6_forward_instats_vrf.sh line 148: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 152: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 153: $PING6 2001:1:2::2 -c 1 -w $PING_TIMEOUT &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" 2001:1:2::2 -c 1 -w "$PING_TIMEOUT" &> /dev/null In ip6_forward_instats_vrf.sh line 156: local t1=$(ipv6_stats_get $rtr1 Ip6InDiscards) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InDiscards) In ip6_forward_instats_vrf.sh line 165: ping6_test $h1 2001:1:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:1:2::2 In ip6_forward_instats_vrf.sh line 174: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh - 76a16a84cf1e44787fb34c93910c240a7b20de5ee8162fba3a12fad494bdc972 In ip6gre_custom_multipath_hash.sh line 89: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In ip6gre_custom_multipath_hash.sh line 90: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In ip6gre_custom_multipath_hash.sh line 91: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In ip6gre_custom_multipath_hash.sh line 96: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In ip6gre_custom_multipath_hash.sh line 97: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In ip6gre_custom_multipath_hash.sh line 98: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In ip6gre_custom_multipath_hash.sh line 103: simple_if_init $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In ip6gre_custom_multipath_hash.sh line 104: __simple_if_init $ul1 v$ol1 2001:db8:10::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul1" v"$ol1" 2001:db8:10::1/64 In ip6gre_custom_multipath_hash.sh line 107: dev v$ol1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev v"$ol1" In ip6gre_custom_multipath_hash.sh line 108: __simple_if_init g1 v$ol1 2001:db8:3::1/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g1 v"$ol1" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 109: ip route add vrf v$ol1 2001:db8:3::2/128 via 2001:db8:10::2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 2001:db8:3::2/128 via 2001:db8:10::2 In ip6gre_custom_multipath_hash.sh line 111: ip route add vrf v$ol1 203.0.113.0/24 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 203.0.113.0/24 dev g1 In ip6gre_custom_multipath_hash.sh line 112: ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol1" 2001:db8:2::/64 dev g1 In ip6gre_custom_multipath_hash.sh line 117: ip -6 route del vrf v$ol1 2001:db8:2::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol1" 2001:db8:2::/64 In ip6gre_custom_multipath_hash.sh line 118: ip route del vrf v$ol1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 203.0.113.0/24 In ip6gre_custom_multipath_hash.sh line 120: ip route del vrf v$ol1 2001:db8:3::2/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 124: __simple_if_fini $ul1 2001:db8:10::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul1" 2001:db8:10::1/64 In ip6gre_custom_multipath_hash.sh line 125: simple_if_fini $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In ip6gre_custom_multipath_hash.sh line 130: simple_if_init $ul21 2001:db8:10::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul21" 2001:db8:10::2/64 In ip6gre_custom_multipath_hash.sh line 131: __simple_if_init $ul22 v$ul21 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul22" v"$ul21" In ip6gre_custom_multipath_hash.sh line 132: vlan_create $ul22 111 v$ul21 2001:db8:11::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 111 v"$ul21" 2001:db8:11::1/64 In ip6gre_custom_multipath_hash.sh line 133: vlan_create $ul22 222 v$ul21 2001:db8:12::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 222 v"$ul21" 2001:db8:12::1/64 In ip6gre_custom_multipath_hash.sh line 135: ip -6 route add vrf v$ul21 2001:db8:3::1/128 via 2001:db8:10::1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul21" 2001:db8:3::1/128 via 2001:db8:10::1 In ip6gre_custom_multipath_hash.sh line 136: ip -6 route add vrf v$ul21 2001:db8:3::2/128 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul21" 2001:db8:3::2/128 \ In ip6gre_custom_multipath_hash.sh line 143: ip -6 route del vrf v$ul21 2001:db8:3::2/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul21" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 144: ip -6 route del vrf v$ul21 2001:db8:3::1/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul21" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 146: vlan_destroy $ul22 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 222 In ip6gre_custom_multipath_hash.sh line 147: vlan_destroy $ul22 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 111 In ip6gre_custom_multipath_hash.sh line 148: __simple_if_fini $ul22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul22" In ip6gre_custom_multipath_hash.sh line 149: simple_if_fini $ul21 2001:db8:10::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul21" 2001:db8:10::2/64 In ip6gre_custom_multipath_hash.sh line 154: simple_if_init $ul31 2001:db8:13::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul31" 2001:db8:13::1/64 In ip6gre_custom_multipath_hash.sh line 155: __simple_if_init $ul32 v$ul31 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul32" v"$ul31" In ip6gre_custom_multipath_hash.sh line 156: vlan_create $ul32 111 v$ul31 2001:db8:11::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 111 v"$ul31" 2001:db8:11::2/64 In ip6gre_custom_multipath_hash.sh line 157: vlan_create $ul32 222 v$ul31 2001:db8:12::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 222 v"$ul31" 2001:db8:12::2/64 In ip6gre_custom_multipath_hash.sh line 159: ip -6 route add vrf v$ul31 2001:db8:3::2/128 via 2001:db8:13::2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul31" 2001:db8:3::2/128 via 2001:db8:13::2 In ip6gre_custom_multipath_hash.sh line 160: ip -6 route add vrf v$ul31 2001:db8:3::1/128 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul31" 2001:db8:3::1/128 \ In ip6gre_custom_multipath_hash.sh line 164: tc qdisc add dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$ul32" clsact In ip6gre_custom_multipath_hash.sh line 165: tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 111 prot 802.1Q \ In ip6gre_custom_multipath_hash.sh line 167: tc filter add dev $ul32 ingress pref 222 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 222 prot 802.1Q \ In ip6gre_custom_multipath_hash.sh line 173: tc qdisc del dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$ul32" clsact In ip6gre_custom_multipath_hash.sh line 175: ip -6 route del vrf v$ul31 2001:db8:3::1/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul31" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 176: ip -6 route del vrf v$ul31 2001:db8:3::2/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul31" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 178: vlan_destroy $ul32 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 222 In ip6gre_custom_multipath_hash.sh line 179: vlan_destroy $ul32 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 111 In ip6gre_custom_multipath_hash.sh line 180: __simple_if_fini $ul32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul32" In ip6gre_custom_multipath_hash.sh line 181: simple_if_fini $ul31 2001:db8:13::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul31" 2001:db8:13::1/64 In ip6gre_custom_multipath_hash.sh line 186: simple_if_init $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In ip6gre_custom_multipath_hash.sh line 187: __simple_if_init $ul4 v$ol4 2001:db8:13::2/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul4" v"$ol4" 2001:db8:13::2/64 In ip6gre_custom_multipath_hash.sh line 190: dev v$ol4 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev v"$ol4" In ip6gre_custom_multipath_hash.sh line 191: __simple_if_init g2 v$ol4 2001:db8:3::2/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g2 v"$ol4" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 192: ip -6 route add vrf v$ol4 2001:db8:3::1/128 via 2001:db8:13::1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:3::1/128 via 2001:db8:13::1 In ip6gre_custom_multipath_hash.sh line 194: ip route add vrf v$ol4 198.51.100.0/24 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 198.51.100.0/24 dev g2 In ip6gre_custom_multipath_hash.sh line 195: ip -6 route add vrf v$ol4 2001:db8:1::/64 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:1::/64 dev g2 In ip6gre_custom_multipath_hash.sh line 200: ip -6 route del vrf v$ol4 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:1::/64 In ip6gre_custom_multipath_hash.sh line 201: ip route del vrf v$ol4 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 198.51.100.0/24 In ip6gre_custom_multipath_hash.sh line 203: ip -6 route del vrf v$ol4 2001:db8:3::1/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 207: __simple_if_fini $ul4 2001:db8:13::2/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul4" 2001:db8:13::2/64 In ip6gre_custom_multipath_hash.sh line 208: simple_if_fini $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In ip6gre_custom_multipath_hash.sh line 213: simple_if_init $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:2::2/64 In ip6gre_custom_multipath_hash.sh line 214: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In ip6gre_custom_multipath_hash.sh line 215: ip -6 route add vrf v$h2 default via 2001:db8:2::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:2::1 dev "$h2" In ip6gre_custom_multipath_hash.sh line 220: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In ip6gre_custom_multipath_hash.sh line 221: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In ip6gre_custom_multipath_hash.sh line 222: simple_if_fini $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:2::2/64 In ip6gre_custom_multipath_hash.sh line 271: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In ip6gre_custom_multipath_hash.sh line 276: ping6_test $h1 2001:db8:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:2::2 In ip6gre_custom_multipath_hash.sh line 281: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 283: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 288: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 290: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 295: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 297: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In ip6gre_custom_multipath_hash.sh line 302: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 304: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In ip6gre_custom_multipath_hash.sh line 309: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 311: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 316: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 318: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 324: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In ip6gre_custom_multipath_hash.sh line 332: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 334: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In ip6gre_custom_multipath_hash.sh line 339: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 341: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In ip6gre_custom_multipath_hash.sh line 348: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In ip6gre_custom_multipath_hash.sh line 352: local t0_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_111=$(tc_rule_stats_get "$ul32" 111 ingress) In ip6gre_custom_multipath_hash.sh line 353: local t0_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_222=$(tc_rule_stats_get "$ul32" 222 ingress) In ip6gre_custom_multipath_hash.sh line 357: local t1_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_111=$(tc_rule_stats_get "$ul32" 111 ingress) In ip6gre_custom_multipath_hash.sh line 358: local t1_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_222=$(tc_rule_stats_get "$ul32" 222 ingress) In ip6gre_custom_multipath_hash.sh line 366: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In ip6gre_custom_multipath_hash.sh line 367: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In ip6gre_custom_multipath_hash.sh line 466: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/lib.sh - e1a847ed4d4592e29820ec7d4d0de16c1b815b225d7508d588b8b4f99ffa9610 In lib.sh line 97: basename `realpath $driver_path` ^---------------------^ SC2046 (warning): Quote this to prevent word splitting. ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: basename $(realpath "$driver_path") In lib.sh line 103: local ifnames=`ip -j link show | jq -r ".[].ifname"` ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: local ifnames=$(ip -j link show | jq -r ".[].ifname") In lib.sh line 108: local driver_name=`driver_name_get $ifname` ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-----------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local driver_name=$(driver_name_get "$ifname") In lib.sh line 109: if [[ ! -z $driver_name && $driver_name == $NETIF_FIND_DRIVER ]]; then ^-- SC2236 (style): Use -n instead of ! -z. ^----------------^ SC2053 (warning): Quote the right-hand side of == in [[ ]] to prevent glob matching. In lib.sh line 128: source "$net_forwarding_dir/forwarding.config" ^-- SC1091 (info): Not following: ./forwarding.config: openBinaryFile: does not exist (No such file or directory) In lib.sh line 139: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 149: tc filter add dev $dev ingress pref 1 handle 1 flower \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress pref 1 handle 1 flower \ In lib.sh line 151: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 155: tc filter del dev $dev ingress pref 1 handle 1 flower \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress pref 1 handle 1 flower \ In lib.sh line 164: tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 166: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 170: tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 180: tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 184: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 189: tc -j filter show dev $dev ingress protocol mpls_uc | jq . &> /dev/null ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j filter show dev "$dev" ingress protocol mpls_uc | jq . &> /dev/null In lib.sh line 191: tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 203: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 212: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 221: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 230: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 239: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 248: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 257: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 268: [ 0 -ne $(ethtool --json -S $dev --all-groups --src pmac 2>/dev/null \ ^-- SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ 0 -ne $(ethtool --json -S "$dev" --all-groups --src pmac 2>/dev/null \ In lib.sh line 297: local driver_name=`driver_name_get $dev` ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local driver_name=$(driver_name_get "$dev") In lib.sh line 299: if [[ $driver_name != $expected ]]; then ^-------^ SC2053 (warning): Quote the right-hand side of != in [[ ]] to prevent glob matching. In lib.sh line 312: local version="$(msend -v)" ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 316: major=$(echo $version | cut -d. -f1) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: major=$(echo "$version" | cut -d. -f1) In lib.sh line 318: if [ $major -lt 3 ]; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$major" -lt 3 ]; then In lib.sh line 328: require_command $MZ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$MZ" In lib.sh line 331: require_command $TEAMD ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TEAMD" In lib.sh line 364: echo "SKIP: Importer requires $NUM_NETIFS NETIFS, but only ${#NETIFS[@]} are defined (${NETIFS[@]})" ^----------^ SC2145 (error): Argument mixes string and array. Use * or separate argument. In lib.sh line 382: if [ -z ${NETIFS[p$i]} ]; then ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "${NETIFS[p$i]}" ]; then In lib.sh line 387: ip link show dev ${NETIFS[p$i]} &> /dev/null ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "${NETIFS[p$i]}" &> /dev/null In lib.sh line 388: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 389: ip link add ${NETIFS[p$i]} type veth \ ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add "${NETIFS[p$i]}" type veth \ In lib.sh line 390: peer name ${NETIFS[p$j]} ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: peer name "${NETIFS[p$j]}" In lib.sh line 391: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 405: *) echo "Can not create interfaces of type \'$NETIF_TYPE\'" ^-- SC2028 (info): echo may not expand escape sequences. Use printf. In lib.sh line 421: MAC_ADDR_ORIG["$dev"]=$(ip -j link show dev $dev | jq -e '.[].address') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: MAC_ADDR_ORIG["$dev"]=$(ip -j link show dev "$dev" | jq -e '.[].address') In lib.sh line 424: ip link set dev $dev address $new_addr ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" address "$new_addr" In lib.sh line 434: ip link set dev $dev address ${MAC_ADDR_ORIG["$dev"]} ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" address "${MAC_ADDR_ORIG["$dev"]}" In lib.sh line 447: ip link show dev ${NETIFS[p$i]} &> /dev/null ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "${NETIFS[p$i]}" &> /dev/null In lib.sh line 448: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 460: [[ $? != 0 ]] ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 468: for cur in ${arr[@]}; do ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In lib.sh line 474: echo $max ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$max" In lib.sh line 490: $@ | grep $addr | grep $flag "$word" ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $@ | grep "$addr" | grep "$flag" "$word" In lib.sh line 513: setup_wait_dev_with_timeout "$dev" $INTERFACE_TIMEOUT $wait_time ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev_with_timeout "$dev" "$INTERFACE_TIMEOUT" "$wait_time" In lib.sh line 515: if (($?)); then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 529: for ((i = 1; i <= $max_iterations; ++i)); do ^-------------^ SC2004 (style): $/${} is unnecessary on arithmetic variables. In lib.sh line 530: ip link show dev $dev up \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "$dev" up \ In lib.sh line 532: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 535: sleep $wait_time ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sleep "$wait_time" In lib.sh line 549: setup_wait_dev ${NETIFS[p$i]} 0 ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "${NETIFS[p$i]}" 0 In lib.sh line 553: sleep $WAIT_TIME ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sleep "$WAIT_TIME" In lib.sh line 566: slowwait $timeout ip link show dev $dev &> /dev/null ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait "$timeout" ip link show dev "$dev" &> /dev/null In lib.sh line 567: if (( $? )); then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 570: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" In lib.sh line 578: read ^--^ SC2162 (info): read without -r will mangle backslashes. In lib.sh line 618: return ${__TB_IDS[$vrf_name]} ^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "${__TB_IDS[$vrf_name]}" In lib.sh line 626: __vrf_td_id_assign $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __vrf_td_id_assign "$vrf_name" In lib.sh line 629: ip link add dev $vrf_name type vrf table $tb_id ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add dev "$vrf_name" type vrf table $tb_id In lib.sh line 639: __vrf_td_id_lookup $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __vrf_td_id_lookup "$vrf_name" In lib.sh line 644: ip link del dev $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$vrf_name" In lib.sh line 658: ip address $add_del $addrstr dev $if_name ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip address "$add_del" "$addrstr" dev "$if_name" In lib.sh line 668: ip link set dev $if_name master $vrf_name ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" master "$vrf_name" In lib.sh line 669: ip link set dev $if_name up ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" up In lib.sh line 671: __addr_add_del $if_name add "${addrs[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$if_name" add "${addrs[@]}" In lib.sh line 679: __addr_add_del $if_name del "${addrs[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$if_name" del "${addrs[@]}" In lib.sh line 681: ip link set dev $if_name down ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" down In lib.sh line 682: ip link set dev $if_name nomaster ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" nomaster In lib.sh line 695: vrf_create $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_create "$vrf_name" In lib.sh line 696: ip link set dev $vrf_name up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" up In lib.sh line 697: __simple_if_init $if_name $vrf_name "${array[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$if_name" "$vrf_name" "${array[@]}" In lib.sh line 710: __simple_if_fini $if_name "${array[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$if_name" "${array[@]}" In lib.sh line 711: vrf_destroy $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_destroy "$vrf_name" In lib.sh line 721: ip link add name $name type $type \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name "$name" type "$type" \ In lib.sh line 722: local $local remote $remote "$@" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local "$local" remote "$remote" "$@" In lib.sh line 723: ip link set dev $name up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" up In lib.sh line 730: ip link del dev $name ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$name" In lib.sh line 741: ip link add name $name link $if_name type vlan id $vid ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name "$name" link "$if_name" type vlan id "$vid" In lib.sh line 743: ip link set dev $name master $vrf ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" master "$vrf" In lib.sh line 745: ip link set dev $name up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" up In lib.sh line 746: __addr_add_del $name add "${ips[@]}" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$name" add "${ips[@]}" In lib.sh line 755: ip link del dev $name ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$name" In lib.sh line 763: require_command $TEAMD ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TEAMD" In lib.sh line 764: $TEAMD -t $if_name -d -c '{"runner": {"name": "'$mode'"}}' ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $TEAMD -t "$if_name" -d -c '{"runner": {"name": "'"$mode"'"}}' In lib.sh line 766: ip link set dev $slave down ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" down In lib.sh line 767: ip link set dev $slave master $if_name ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" master "$if_name" In lib.sh line 768: ip link set dev $slave up ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" up In lib.sh line 770: ip link set dev $if_name up ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" up In lib.sh line 777: $TEAMD -t $if_name -k ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $TEAMD -t "$if_name" -k In lib.sh line 784: ip -j link show dev $if_name | jq -r '.[]["master"]' ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j link show dev "$if_name" | jq -r '.[]["master"]' In lib.sh line 793: ip -j -s link show dev $if_name \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j -s link show dev "$if_name" \ In lib.sh line 794: | jq '.[]["stats64"]["'$dir'"]["'$stat'"]' ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: | jq '.[]["stats64"]["'"$dir"'"]["'"$stat"'"]' In lib.sh line 799: link_stats_get $1 tx packets ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: link_stats_get "$1" tx packets In lib.sh line 804: link_stats_get $1 rx errors ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: link_stats_get "$1" rx errors In lib.sh line 812: ethtool -S $dev | grep "^ *$stat:" | head -n 1 | cut -d: -f2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -S "$dev" | grep "^ *$stat:" | head -n 1 | cut -d: -f2 In lib.sh line 822: ethtool --json -S $dev --groups $grp -- --src $src | \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --json -S "$dev" --groups "$grp" -- --src "$src" | \ In lib.sh line 823: jq '.[]."'"$grp"'"."'$name'"' ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: jq '.[]."'"$grp"'"."'"$name"'"' In lib.sh line 851: cat /proc/net/dev_snmp6/$dev | grep "^$stat" | cut -f2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cat /proc/net/dev_snmp6/"$dev" | grep "^$stat" | cut -f2 In lib.sh line 861: ip -j stats show dev $if_name group offload subgroup $suite | ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j stats show dev "$if_name" group offload subgroup "$suite" | In lib.sh line 871: ip -j -s -s nexthop show id $group_id | ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j -s -s nexthop show id "$group_id" | In lib.sh line 962: ip -j addr show dev $if_name | \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j addr show dev "$if_name" | \ In lib.sh line 973: ageing_time=$(ip -j -d link show dev $bridge \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ageing_time=$(ip -j -d link show dev "$bridge" \ In lib.sh line 983: SYSCTL_ORIG[$key]=$(sysctl -n $key) ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: SYSCTL_ORIG[$key]=$(sysctl -n "$key") In lib.sh line 992: sysctl -qw $key="$value" ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -qw "$key"="$value" In lib.sh line 999: sysctl -qw $key="${SYSCTL_ORIG[$key]}" ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -qw "$key"="${SYSCTL_ORIG[$key]}" In lib.sh line 1020: MTU_ORIG["$dev"]=$(ip -j link show dev $dev | jq -e '.[].mtu') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: MTU_ORIG["$dev"]=$(ip -j link show dev "$dev" | jq -e '.[].mtu') In lib.sh line 1021: ip link set dev $dev mtu $mtu ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" mtu "$mtu" In lib.sh line 1028: ip link set dev $dev mtu ${MTU_ORIG["$dev"]} ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" mtu "${MTU_ORIG["$dev"]}" In lib.sh line 1036: ethtool -k ${NETIFS[p$i]} \ ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -k "${NETIFS[p$i]}" \ In lib.sh line 1038: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 1056: tc filter add dev $dev $direction pref 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" "$direction" pref 1 \ In lib.sh line 1058: || tc filter add dev $dev $direction pref 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: || tc filter add dev "$dev" "$direction" pref 1 \ In lib.sh line 1067: tc filter del dev $dev $direction pref 1 flower ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" "$direction" pref 1 flower In lib.sh line 1078: tc filter $add_del dev "$tundev" ingress \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter "$add_del" dev "$tundev" ingress \ In lib.sh line 1079: proto ip$vsuf pref $pref \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: proto ip"$vsuf" pref "$pref" \ In lib.sh line 1080: flower ip_proto icmp$vsuf $filter \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower ip_proto icmp"$vsuf" "$filter" \ In lib.sh line 1123: tc filter $add_del dev "$dev" ingress \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter "$add_del" dev "$dev" ingress \ In lib.sh line 1124: proto 802.1q pref $pref \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: proto 802.1q pref "$pref" \ In lib.sh line 1125: flower $filter \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower "$filter" \ In lib.sh line 1154: __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __icmp_capture_add_del "$add_del" $((dscp + 100)) "" "$dev" \ In lib.sh line 1164: __dscp_capture_add_del add $dev $base ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __dscp_capture_add_del add "$dev" "$base" In lib.sh line 1172: __dscp_capture_add_del del $dev $base ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __dscp_capture_add_del del "$dev" "$base" In lib.sh line 1182: local t=$(tc_rule_stats_get $dev $((dscp + 100))) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t=$(tc_rule_stats_get "$dev" $((dscp + 100))) In lib.sh line 1191: tc qdisc add dev $dev clsact ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$dev" clsact In lib.sh line 1192: tc filter add dev $dev ingress \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress \ In lib.sh line 1238: diff=$(echo $weights_ratio - $packets_ratio | bc -l) ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: diff=$(echo "$weights_ratio" - "$packets_ratio" | bc -l) In lib.sh line 1251: ip netns exec $name bash <<-EOF ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns exec "$name" bash <<-EOF In lib.sh line 1268: vrf_name=$(master_name_get $if_name) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_name=$(master_name_get "$if_name") In lib.sh line 1269: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1270: $PING $args $dip -c $PING_COUNT -i 0.1 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING" "$args" "$dip" -c "$PING_COUNT" -i 0.1 \ In lib.sh line 1271: -w $PING_TIMEOUT &> /dev/null ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -w "$PING_TIMEOUT" &> /dev/null In lib.sh line 1278: ping_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_do "$1" "$2" In lib.sh line 1287: ping_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_do "$1" "$2" In lib.sh line 1299: vrf_name=$(master_name_get $if_name) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_name=$(master_name_get "$if_name") In lib.sh line 1300: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1301: $PING6 $args $dip -c $PING_COUNT -i 0.1 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" "$args" "$dip" -c "$PING_COUNT" -i 0.1 \ In lib.sh line 1302: -w $PING_TIMEOUT &> /dev/null ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -w "$PING_TIMEOUT" &> /dev/null In lib.sh line 1309: ping6_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_do "$1" "$2" In lib.sh line 1318: ping6_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_do "$1" "$2" In lib.sh line 1334: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1341: bridge link set dev $br_port1 flood off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" flood off In lib.sh line 1343: ip link set $host1_if promisc on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host1_if" promisc on In lib.sh line 1344: tc qdisc add dev $host1_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host1_if" ingress In lib.sh line 1345: tc filter add dev $host1_if ingress protocol ip pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host1_if" ingress protocol ip pref 1 handle 101 \ In lib.sh line 1348: $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host2_if" -c 1 -p 64 -b $mac -t ip -q In lib.sh line 1351: tc -j -s filter show dev $host1_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host1_if" ingress \ In lib.sh line 1356: $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -a $mac -t ip -q In lib.sh line 1359: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1363: $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host2_if" -c 1 -p 64 -b $mac -t ip -q In lib.sh line 1366: tc -j -s filter show dev $host1_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host1_if" ingress \ In lib.sh line 1373: ageing_time=$(bridge_ageing_time_get $bridge) ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ageing_time=$(bridge_ageing_time_get "$bridge") In lib.sh line 1376: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1380: bridge link set dev $br_port1 learning off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" learning off In lib.sh line 1382: $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -a $mac -t ip -q In lib.sh line 1385: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1389: bridge link set dev $br_port1 learning on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" learning on In lib.sh line 1391: tc filter del dev $host1_if ingress protocol ip pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host1_if" ingress protocol ip pref 1 handle 101 flower In lib.sh line 1392: tc qdisc del dev $host1_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host1_if" ingress In lib.sh line 1393: ip link set $host1_if promisc off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host1_if" promisc off In lib.sh line 1395: bridge link set dev $br_port1 flood on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" flood on In lib.sh line 1411: ip link set $host2_if promisc on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host2_if" promisc on In lib.sh line 1412: tc qdisc add dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host2_if" ingress In lib.sh line 1413: tc filter add dev $host2_if ingress protocol ip pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host2_if" ingress protocol ip pref 1 handle 101 \ In lib.sh line 1414: flower dst_mac $mac action drop ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower dst_mac "$mac" action drop In lib.sh line 1416: $MZ $host1_if -c 1 -p 64 -b $mac -B $ip -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -b "$mac" -B "$ip" -t ip -q In lib.sh line 1419: tc -j -s filter show dev $host2_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host2_if" ingress \ In lib.sh line 1427: tc filter del dev $host2_if ingress protocol ip pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host2_if" ingress protocol ip pref 1 handle 101 flower In lib.sh line 1428: tc qdisc del dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host2_if" ingress In lib.sh line 1429: ip link set $host2_if promisc off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host2_if" promisc off In lib.sh line 1444: bridge link set dev $br_port flood off ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" flood off In lib.sh line 1446: flood_test_do false $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do false $mac $ip "$host1_if" "$host2_if" In lib.sh line 1449: bridge link set dev $br_port flood on ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" flood on In lib.sh line 1451: flood_test_do true $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do true $mac $ip "$host1_if" "$host2_if" In lib.sh line 1467: bridge link set dev $br_port mcast_flood off ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" mcast_flood off In lib.sh line 1469: flood_test_do false $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do false $mac $ip "$host1_if" "$host2_if" In lib.sh line 1472: bridge link set dev $br_port mcast_flood on ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" mcast_flood on In lib.sh line 1474: flood_test_do true $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do true $mac $ip "$host1_if" "$host2_if" In lib.sh line 1487: flood_unicast_test $br_port $host1_if $host2_if ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_unicast_test "$br_port" "$host1_if" "$host2_if" In lib.sh line 1488: flood_multicast_test $br_port $host1_if $host2_if ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_multicast_test "$br_port" "$host1_if" "$host2_if" In lib.sh line 1501: $MZ $h_in -p $pktsize -A $sip -B $dip -c 0 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$h_in" -p "$pktsize" -A "$sip" -B "$dip" -c 0 \ In lib.sh line 1502: -a own -b $dmac -t "$proto" -q "${mz_args[@]}" & ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -a own -b "$dmac" -t "$proto" -q "${mz_args[@]}" & In lib.sh line 1515: __start_traffic $pktsize udp "$h_in" "$sip" "$dip" "$dmac" \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __start_traffic "$pktsize" udp "$h_in" "$sip" "$dip" "$dmac" \ In lib.sh line 1528: __start_traffic $pktsize tcp "$h_in" "$sip" "$dip" "$dmac" \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __start_traffic "$pktsize" tcp "$h_in" "$sip" "$dip" "$dmac" \ In lib.sh line 1575: if [ -z $ns ]; then ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "$ns" ]; then In lib.sh line 1581: if [ -z $SUDO_USER ] ; then ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "$SUDO_USER" ] ; then In lib.sh line 1587: $ns_cmd tcpdump $TCPDUMP_EXTRA_FLAGS -e -n -Q in -i $if_name \ ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ns_cmd tcpdump "$TCPDUMP_EXTRA_FLAGS" -e -n -Q in -i "$if_name" \ In lib.sh line 1588: -s 65535 -B 32768 $capuser -w ${capfile[$if_name]} \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -s 65535 -B 32768 "$capuser" -w "${capfile[$if_name]}" \ In lib.sh line 1608: rm ${capfile[$if_name]} ${capout[$if_name]} ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm "${capfile[$if_name]}" "${capout[$if_name]}" In lib.sh line 1615: tcpdump -e -n -r ${capfile[$if_name]} 2>&1 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tcpdump -e -n -r "${capfile[$if_name]}" 2>&1 In lib.sh line 1638: tc qdisc add dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host2_if" ingress In lib.sh line 1639: tc filter add dev $host2_if ingress protocol $tc_proto pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host2_if" ingress protocol $tc_proto pref 1 handle 101 \ In lib.sh line 1640: flower ip_proto udp dst_mac $mac action drop ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower ip_proto udp dst_mac "$mac" action drop In lib.sh line 1642: $MZ $host1_if $mz_v6arg -c 1 -p 64 -b $mac -A $src_ip -B $ip -t udp "dp=4096,sp=2048" -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" $mz_v6arg -c 1 -p 64 -b "$mac" -A "$src_ip" -B "$ip" -t udp "dp=4096,sp=2048" -q In lib.sh line 1645: tc -j -s filter show dev $host2_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host2_if" ingress \ In lib.sh line 1648: if [[ $? -eq 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In lib.sh line 1652: tc filter del dev $host2_if ingress protocol $tc_proto pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host2_if" ingress protocol $tc_proto pref 1 handle 101 flower In lib.sh line 1653: tc qdisc del dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host2_if" ingress In lib.sh line 1688: mcast_packet_test $TEST_GROUP_MAC $src $TEST_GROUP $h2 $h1 ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2154 (warning): h2 is referenced but not assigned. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2154 (warning): h1 is referenced but not assigned. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mcast_packet_test "$TEST_GROUP_MAC" "$src" "$TEST_GROUP" "$h2" "$h1" In lib.sh line 1690: if [ $should_fwd -eq 1 ]; then ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$should_fwd" -eq 1 ]; then In lib.sh line 1704: if [ $is_blocked -eq 1 ]; then ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$is_blocked" -eq 1 ]; then In lib.sh line 1729: local vrf_name=$(master_name_get $if_name) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$if_name") In lib.sh line 1734: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1735: mreceive -g $group -I $if_name > /dev/null 2>&1 & ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mreceive -g "$group" -I "$if_name" > /dev/null 2>&1 & In lib.sh line 1750: local vrf_name=$(master_name_get $if_name) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$if_name") In lib.sh line 1752: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1753: msend -g $groups -I $if_name -c 1 > /dev/null 2>&1 ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msend -g "$groups" -I "$if_name" -c 1 > /dev/null 2>&1 In lib.sh line 1807: tmpfile=`mktemp /var/run/nexthoptestXXX` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: tmpfile=$(mktemp /var/run/nexthoptestXXX) In lib.sh line 1808: mpid=`($ip monitor $mtype > $tmpfile & echo $!) 2>/dev/null` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mpid=$(($ip monitor "$mtype" > "$tmpfile" & echo $!) 2>/dev/null) In lib.sh line 1821: kill $mpid ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$mpid" In lib.sh line 1822: local lines=`grep '^\w' $tmpfile | wc -l` ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local lines=$(grep '^\w' "$tmpfile" | wc -l) In lib.sh line 1823: test $lines -eq $el ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test "$lines" -eq "$el" In lib.sh line 1825: rm -rf $tmpfile ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In lib.sh line 1839: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1840: $ip stats set dev $dev ${type}_stats on ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ip stats set dev "$dev" "${type}"_stats on In lib.sh line 1841: stop_ip_monitor $ipmout 1 "${type}_stats enablement" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats enablement" In lib.sh line 1844: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1846: stop_ip_monitor $ipmout 1 "${type}_stats installation" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats installation" In lib.sh line 1849: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1851: stop_ip_monitor $ipmout 1 "${type}_stats deinstallation" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats deinstallation" In lib.sh line 1854: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1855: $ip stats set dev $dev ${type}_stats off ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ip stats set dev "$dev" "${type}"_stats off In lib.sh line 1856: stop_ip_monitor $ipmout 1 "${type}_stats disablement" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats disablement" In lib.sh line 1865: printf '%02x:' ${IP//./ } | ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: printf '%02x:' "${IP//./ }" | In lib.sh line 1884: echo $allcol_ip | tr : '\n' | ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$allcol_ip" | tr : '\n' | In lib.sh line 1902: printf "%04x" $u16 | sed 's/^/000/;s/^.*\(..\)\(..\)$/\1:\2/' ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: printf "%04x" "$u16" | sed 's/^/000/;s/^.*\(..\)\(..\)$/\1:\2/' In lib.sh line 1941: local ckbytes=$(u16_to_bytes $checksum) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local ckbytes=$(u16_to_bytes "$checksum") In lib.sh line 1943: echo "$payload" | sed "s/CHECKSUM/$ckbytes/g" ^-- SC2001 (style): See if you can use ${variable//search/replace} instead. In lib.sh line 1960: local nsources=$(u16_to_bytes ${#sources[@]}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1964: )"22:"$( : Type - Membership Report ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1965: )"00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1966: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1967: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1968: )"00:01:"$( : Number of Group Records ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1969: )"01:"$( : Record Type - IS_IN ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1970: )"00:"$( : Aux Data Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1971: )"${nsources}:"$( : Number of Sources ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1972: )"$(ipv4_to_bytes $GRP):"$( : Multicast Address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv4_to_bytes "$GRP"):"$( : Multicast Address In lib.sh line 1974: ipv4_to_bytes $src ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ipv4_to_bytes "$src" In lib.sh line 1978: local checksum=$(payload_template_calc_checksum "$igmpv3") ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1980: payload_template_expand_checksum "$igmpv3" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$igmpv3" "$checksum" In lib.sh line 1987: local payload=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1988: )"17:"$( : Type - Leave Group ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1989: )"00:"$( : Max Resp Time - not meaningful ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1990: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1991: )"$(ipv4_to_bytes $GRP)"$( : Group Address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: )"$(ipv4_to_bytes "$GRP")"$( : Group Address In lib.sh line 1993: local checksum=$(payload_template_calc_checksum "$payload") ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1995: payload_template_expand_checksum "$payload" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$payload" "$checksum" In lib.sh line 2006: local nsources=$(u16_to_bytes ${#sources[@]}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2009: )"3a:"$( : Next Header - ICMPv6 ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2010: )"00:"$( : Hdr Ext Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2015: )"8f:"$( : Type - MLDv2 Report ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2016: )"00:"$( : Code ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2017: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2018: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2019: )"00:01:"$( : Number of Group Records ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2020: )"01:"$( : Record Type - IS_IN ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2021: )"00:"$( : Aux Data Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2022: )"${nsources}:"$( : Number of Sources ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2023: )"$(ipv6_to_bytes $GRP):"$( : Multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : Multicast address In lib.sh line 2025: ipv6_to_bytes $src ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ipv6_to_bytes "$src" In lib.sh line 2030: local len=$(u16_to_bytes $(payload_template_nbytes $icmpv6)) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local len=$(u16_to_bytes $(payload_template_nbytes "$icmpv6")) In lib.sh line 2031: local sudohdr=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2032: )"$(ipv6_to_bytes $SIP):"$( : SIP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$SIP"):"$( : SIP In lib.sh line 2033: )"$(ipv6_to_bytes $GRP):"$( : DIP is multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : DIP is multicast address In lib.sh line 2034: )"${len}:"$( : Upper-layer length ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2037: local checksum=$(payload_template_calc_checksum ${sudohdr}${icmpv6}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local checksum=$(payload_template_calc_checksum "${sudohdr}""${icmpv6}") In lib.sh line 2039: payload_template_expand_checksum "$hbh$icmpv6" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$hbh$icmpv6" "$checksum" In lib.sh line 2051: )"3a:"$( : Next Header - ICMPv6 ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2052: )"00:"$( : Hdr Ext Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2057: )"84:"$( : Type - MLDv1 Done ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2058: )"00:"$( : Code ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2059: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2060: )"00:00:"$( : Max Resp Delay - not meaningful ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2061: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2062: )"$(ipv6_to_bytes $GRP):"$( : Multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : Multicast address In lib.sh line 2065: local len=$(u16_to_bytes $(payload_template_nbytes $icmpv6)) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local len=$(u16_to_bytes $(payload_template_nbytes "$icmpv6")) In lib.sh line 2066: local sudohdr=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2067: )"$(ipv6_to_bytes $SIP):"$( : SIP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$SIP"):"$( : SIP In lib.sh line 2068: )"$(ipv6_to_bytes $GRP):"$( : DIP is multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : DIP is multicast address In lib.sh line 2069: )"${len}:"$( : Upper-layer length ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2072: local checksum=$(payload_template_calc_checksum ${sudohdr}${icmpv6}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local checksum=$(payload_template_calc_checksum "${sudohdr}""${icmpv6}") In lib.sh line 2074: payload_template_expand_checksum "$hbh$icmpv6" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$hbh$icmpv6" "$checksum" In lib.sh line 2103: log_test_skip $src:$caller ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: log_test_skip "$src":"$caller" In lib.sh line 2104: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" In lib.sh line 2121: local mac_addr=$(mac_get $dev) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local mac_addr=$(mac_get "$dev") In lib.sh line 2122: local tmp=$(ether_addr_to_u64 $mac_addr) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local tmp=$(ether_addr_to_u64 "$mac_addr") In lib.sh line 2125: ip link set $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$dev" up In lib.sh line 2126: ip link add link $dev name macvlan-tmp type macvlan mode private ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add link "$dev" name macvlan-tmp type macvlan mode private In lib.sh line 2127: ip link set macvlan-tmp address $(u64_to_ether_addr $((tmp + 1))) ^-- SC2046 (warning): Quote this to prevent word splitting. In lib.sh line 2130: promisc=$(ip -j -d link show dev $dev | jq -r '.[].promiscuity') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: promisc=$(ip -j -d link show dev "$dev" | jq -r '.[].promiscuity') For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2145 -- Argument mixes string and array. ... https://www.shellcheck.net/wiki/SC2027 -- The surrounding quotes actually u... Checking tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh - ff65a89453ece274b95f813f7a38af510b609241bdbb4e7989330f864d2451dd In mirror_gre_bridge_1q_lag.sh line 58: require_command $ARPING ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$ARPING" In mirror_gre_bridge_1q_lag.sh line 67: vrf_create $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_create "$vrf_name" In mirror_gre_bridge_1q_lag.sh line 68: ip link set dev $vrf_name up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" up In mirror_gre_bridge_1q_lag.sh line 69: vlan_create $if_name $vid $vrf_name "${ips[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$if_name" "$vid" "$vrf_name" "${ips[@]}" In mirror_gre_bridge_1q_lag.sh line 78: vlan_destroy $if_name $vid ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$if_name" "$vid" In mirror_gre_bridge_1q_lag.sh line 79: ip link set dev $vrf_name down ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" down In mirror_gre_bridge_1q_lag.sh line 80: vrf_destroy $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_destroy "$vrf_name" In mirror_gre_bridge_1q_lag.sh line 85: vlan_host_create $h1 333 vrf-h1 192.0.2.1/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_create "$h1" 333 vrf-h1 192.0.2.1/28 In mirror_gre_bridge_1q_lag.sh line 92: vlan_host_destroy $h1 333 vrf-h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_destroy "$h1" 333 vrf-h1 In mirror_gre_bridge_1q_lag.sh line 97: vlan_host_create $h1 555 vrf-h2 192.0.2.18/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_create "$h1" 555 vrf-h2 192.0.2.18/28 In mirror_gre_bridge_1q_lag.sh line 104: vlan_host_destroy $h1 555 vrf-h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_destroy "$h1" 555 vrf-h2 In mirror_gre_bridge_1q_lag.sh line 109: simple_if_init $h3 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h3" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 110: tc qdisc add dev $h3 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$h3" clsact In mirror_gre_bridge_1q_lag.sh line 115: tc qdisc del dev $h3 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$h3" clsact In mirror_gre_bridge_1q_lag.sh line 116: simple_if_fini $h3 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h3" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 121: simple_if_init $h4 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h4" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 122: tc qdisc add dev $h4 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$h4" clsact In mirror_gre_bridge_1q_lag.sh line 127: tc qdisc del dev $h4 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$h4" clsact In mirror_gre_bridge_1q_lag.sh line 128: simple_if_fini $h4 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h4" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 133: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In mirror_gre_bridge_1q_lag.sh line 134: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In mirror_gre_bridge_1q_lag.sh line 135: vlan_create $swp1 333 "" 192.0.2.2/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$swp1" 333 "" 192.0.2.2/28 In mirror_gre_bridge_1q_lag.sh line 136: vlan_create $swp1 555 "" 192.0.2.17/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$swp1" 555 "" 192.0.2.17/28 In mirror_gre_bridge_1q_lag.sh line 141: ip link set dev $swp3 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" up In mirror_gre_bridge_1q_lag.sh line 142: ip link set dev $swp4 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp4" up In mirror_gre_bridge_1q_lag.sh line 144: ip link add name br1 address $(mac_get $swp3) \ ^--------------^ SC2046 (warning): Quote this to prevent word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name br1 address $(mac_get "$swp3") \ In mirror_gre_bridge_1q_lag.sh line 147: team_create lag loadbalance $swp3 $swp4 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: team_create lag loadbalance "$swp3" "$swp4" In mirror_gre_bridge_1q_lag.sh line 165: ip link set dev $swp4 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp4" down In mirror_gre_bridge_1q_lag.sh line 166: ip link set dev $swp3 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" down In mirror_gre_bridge_1q_lag.sh line 170: vlan_destroy $swp1 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$swp1" 555 In mirror_gre_bridge_1q_lag.sh line 171: vlan_destroy $swp1 333 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$swp1" 333 In mirror_gre_bridge_1q_lag.sh line 172: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In mirror_gre_bridge_1q_lag.sh line 173: ip link set dev $swp1 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" down In mirror_gre_bridge_1q_lag.sh line 189: ip link set dev $h1 up ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$h1" up In mirror_gre_bridge_1q_lag.sh line 198: trap_install $h3 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_install "$h3" ingress In mirror_gre_bridge_1q_lag.sh line 199: trap_install $h4 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_install "$h4" ingress In mirror_gre_bridge_1q_lag.sh line 206: trap_uninstall $h4 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_uninstall "$h4" ingress In mirror_gre_bridge_1q_lag.sh line 207: trap_uninstall $h3 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_uninstall "$h3" ingress In mirror_gre_bridge_1q_lag.sh line 216: ip link set dev $h1 down ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$h1" down In mirror_gre_bridge_1q_lag.sh line 230: tc filter add dev $swp1 ingress pref 999 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 999 \ In mirror_gre_bridge_1q_lag.sh line 233: mirror_install $swp1 ingress gt4 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress gt4 \ In mirror_gre_bridge_1q_lag.sh line 237: ip link set dev $down_dev down ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$down_dev" down In mirror_gre_bridge_1q_lag.sh line 239: setup_wait_dev $up_dev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "$up_dev" In mirror_gre_bridge_1q_lag.sh line 240: setup_wait_dev $host_dev ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "$host_dev" In mirror_gre_bridge_1q_lag.sh line 243: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 ">= 10" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$host_dev" 1 ">= 10" In mirror_gre_bridge_1q_lag.sh line 246: ip link set dev $up_dev down ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$up_dev" down In mirror_gre_bridge_1q_lag.sh line 248: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h3 1 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$h3" 1 0 In mirror_gre_bridge_1q_lag.sh line 249: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h4 1 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$h4" 1 0 In mirror_gre_bridge_1q_lag.sh line 251: ip link set dev $up_dev up ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$up_dev" up In mirror_gre_bridge_1q_lag.sh line 252: ip link set dev $down_dev up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$down_dev" up In mirror_gre_bridge_1q_lag.sh line 253: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_bridge_1q_lag.sh line 254: tc filter del dev $swp1 ingress pref 999 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress pref 999 In mirror_gre_bridge_1q_lag.sh line 261: test_lag_slave $h3 $swp3 $swp4 "mirror to gretap: LAG first slave" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test_lag_slave "$h3" "$swp3" "$swp4" "mirror to gretap: LAG first slave" In mirror_gre_bridge_1q_lag.sh line 266: test_lag_slave $h4 $swp4 $swp3 "mirror to gretap: LAG second slave" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test_lag_slave "$h4" "$swp4" "$swp3" "mirror to gretap: LAG second slave" In mirror_gre_bridge_1q_lag.sh line 276: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh - 042764c1c0eeacf1ebf9e1e8dd960a9f50b4d0b2f9ec89cb7415be653bf4b7d3 In mirror_gre_vlan_bridge_1q.sh line 64: require_command $ARPING ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$ARPING" In mirror_gre_vlan_bridge_1q.sh line 71: ip addr $add_del dev $dev 192.0.2.130/28 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr "$add_del" dev "$dev" 192.0.2.130/28 In mirror_gre_vlan_bridge_1q.sh line 72: ip addr $add_del dev $dev 2001:db8:2::2/64 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr "$add_del" dev "$dev" 2001:db8:2::2/64 In mirror_gre_vlan_bridge_1q.sh line 90: sysctl_set net.ipv4.conf.$h3.rp_filter 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl_set net.ipv4.conf."$h3".rp_filter 0 In mirror_gre_vlan_bridge_1q.sh line 100: vlan_create $h3 555 v$h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h3" 555 v"$h3" In mirror_gre_vlan_bridge_1q.sh line 101: h3_addr_add_del add $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 103: ip link set dev $swp3 master br1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" master br1 In mirror_gre_vlan_bridge_1q.sh line 104: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 105: bridge vlan add dev $swp2 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp2" vid 555 In mirror_gre_vlan_bridge_1q.sh line 112: ip link set dev $swp2 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" nomaster In mirror_gre_vlan_bridge_1q.sh line 113: ip link set dev $swp3 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" nomaster In mirror_gre_vlan_bridge_1q.sh line 115: h3_addr_add_del del $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 116: vlan_destroy $h3 555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h3" 555 In mirror_gre_vlan_bridge_1q.sh line 122: sysctl_restore net.ipv4.conf.$h3.rp_filter ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl_restore net.ipv4.conf."$h3".rp_filter In mirror_gre_vlan_bridge_1q.sh line 132: full_test_span_gre_dir_vlan $tundev ingress "$vlan_match" 8 0 "$what" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_dir_vlan "$tundev" ingress "$vlan_match" 8 0 "$what" In mirror_gre_vlan_bridge_1q.sh line 133: full_test_span_gre_dir_vlan $tundev egress "$vlan_match" 0 8 "$what" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_dir_vlan "$tundev" egress "$vlan_match" 0 8 "$what" In mirror_gre_vlan_bridge_1q.sh line 156: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 157: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 162: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 166: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 168: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 190: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 191: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 193: bridge vlan del dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan del dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 195: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 197: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 201: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 203: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 226: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 228: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 229: quick_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 231: h3_addr_add_del del $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 232: bridge vlan add dev $swp3 vid 555 pvid untagged ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 pvid untagged In mirror_gre_vlan_bridge_1q.sh line 233: h3_addr_add_del add $h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3" In mirror_gre_vlan_bridge_1q.sh line 236: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 237: fail_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 239: h3_addr_add_del del $h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3" In mirror_gre_vlan_bridge_1q.sh line 240: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 241: h3_addr_add_del add $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 244: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 245: quick_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 247: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 266: local h3mac=$(mac_get $h3) ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local h3mac=$(mac_get "$h3") In mirror_gre_vlan_bridge_1q.sh line 270: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 271: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 274: bridge fdb del dev $swp3 $h3mac vlan 555 master 2>/dev/null ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb del dev "$swp3" "$h3mac" vlan 555 master 2>/dev/null In mirror_gre_vlan_bridge_1q.sh line 275: bridge fdb add dev $swp2 $h3mac vlan 555 master static ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb add dev "$swp2" "$h3mac" vlan 555 master static In mirror_gre_vlan_bridge_1q.sh line 277: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 279: if ! bridge fdb sh dev $swp2 vlan 555 master \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! bridge fdb sh dev "$swp2" vlan 555 master \ In mirror_gre_vlan_bridge_1q.sh line 280: | grep -q $h3mac; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: | grep -q "$h3mac"; then In mirror_gre_vlan_bridge_1q.sh line 291: bridge fdb del dev $swp2 $h3mac vlan 555 master 2>/dev/null ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb del dev "$swp2" "$h3mac" vlan 555 master 2>/dev/null In mirror_gre_vlan_bridge_1q.sh line 295: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 297: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 314: full_test_span_gre_stp gt4 $swp3 "mirror to gretap" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_stp gt4 "$swp3" "mirror to gretap" In mirror_gre_vlan_bridge_1q.sh line 319: full_test_span_gre_stp gt6 $swp3 "mirror to ip6gretap" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_stp gt6 "$swp3" "mirror to ip6gretap" In mirror_gre_vlan_bridge_1q.sh line 329: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/net/forwarding/custom_multipath_hash.sh - feef75360916395bb50579a2362a27bb961763cb35917e4c01701137e61cacd9 In custom_multipath_hash.sh line 56: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In custom_multipath_hash.sh line 57: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In custom_multipath_hash.sh line 58: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In custom_multipath_hash.sh line 63: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In custom_multipath_hash.sh line 64: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In custom_multipath_hash.sh line 65: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In custom_multipath_hash.sh line 70: simple_if_init $rp1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$rp1" 198.51.100.1/24 2001:db8:1::1/64 In custom_multipath_hash.sh line 71: __simple_if_init $rp11 v$rp1 192.0.2.1/28 2001:db8:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp11" v"$rp1" 192.0.2.1/28 2001:db8:2::1/64 In custom_multipath_hash.sh line 72: __simple_if_init $rp12 v$rp1 192.0.2.17/28 2001:db8:3::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp12" v"$rp1" 192.0.2.17/28 2001:db8:3::1/64 In custom_multipath_hash.sh line 74: ip route add vrf v$rp1 203.0.113.0/24 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$rp1" 203.0.113.0/24 \ In custom_multipath_hash.sh line 75: nexthop via 192.0.2.2 dev $rp11 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.2 dev "$rp11" \ In custom_multipath_hash.sh line 76: nexthop via 192.0.2.18 dev $rp12 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.18 dev "$rp12" In custom_multipath_hash.sh line 78: ip -6 route add vrf v$rp1 2001:db8:4::/64 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$rp1" 2001:db8:4::/64 \ In custom_multipath_hash.sh line 79: nexthop via 2001:db8:2::2 dev $rp11 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:2::2 dev "$rp11" \ In custom_multipath_hash.sh line 80: nexthop via 2001:db8:3::2 dev $rp12 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:3::2 dev "$rp12" In custom_multipath_hash.sh line 85: ip -6 route del vrf v$rp1 2001:db8:4::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$rp1" 2001:db8:4::/64 In custom_multipath_hash.sh line 87: ip route del vrf v$rp1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$rp1" 203.0.113.0/24 In custom_multipath_hash.sh line 89: __simple_if_fini $rp12 192.0.2.17/28 2001:db8:3::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp12" 192.0.2.17/28 2001:db8:3::1/64 In custom_multipath_hash.sh line 90: __simple_if_fini $rp11 192.0.2.1/28 2001:db8:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp11" 192.0.2.1/28 2001:db8:2::1/64 In custom_multipath_hash.sh line 91: simple_if_fini $rp1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$rp1" 198.51.100.1/24 2001:db8:1::1/64 In custom_multipath_hash.sh line 96: simple_if_init $rp2 203.0.113.1/24 2001:db8:4::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$rp2" 203.0.113.1/24 2001:db8:4::1/64 In custom_multipath_hash.sh line 97: __simple_if_init $rp21 v$rp2 192.0.2.2/28 2001:db8:2::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp21" v"$rp2" 192.0.2.2/28 2001:db8:2::2/64 In custom_multipath_hash.sh line 98: __simple_if_init $rp22 v$rp2 192.0.2.18/28 2001:db8:3::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rp22" v"$rp2" 192.0.2.18/28 2001:db8:3::2/64 In custom_multipath_hash.sh line 100: ip route add vrf v$rp2 198.51.100.0/24 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$rp2" 198.51.100.0/24 \ In custom_multipath_hash.sh line 101: nexthop via 192.0.2.1 dev $rp21 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.1 dev "$rp21" \ In custom_multipath_hash.sh line 102: nexthop via 192.0.2.17 dev $rp22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 192.0.2.17 dev "$rp22" In custom_multipath_hash.sh line 104: ip -6 route add vrf v$rp2 2001:db8:1::/64 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$rp2" 2001:db8:1::/64 \ In custom_multipath_hash.sh line 105: nexthop via 2001:db8:2::1 dev $rp21 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:2::1 dev "$rp21" \ In custom_multipath_hash.sh line 106: nexthop via 2001:db8:3::1 dev $rp22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: nexthop via 2001:db8:3::1 dev "$rp22" In custom_multipath_hash.sh line 111: ip -6 route del vrf v$rp2 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$rp2" 2001:db8:1::/64 In custom_multipath_hash.sh line 113: ip route del vrf v$rp2 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$rp2" 198.51.100.0/24 In custom_multipath_hash.sh line 115: __simple_if_fini $rp22 192.0.2.18/28 2001:db8:3::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp22" 192.0.2.18/28 2001:db8:3::2/64 In custom_multipath_hash.sh line 116: __simple_if_fini $rp21 192.0.2.2/28 2001:db8:2::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rp21" 192.0.2.2/28 2001:db8:2::2/64 In custom_multipath_hash.sh line 117: simple_if_fini $rp2 203.0.113.1/24 2001:db8:4::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$rp2" 203.0.113.1/24 2001:db8:4::1/64 In custom_multipath_hash.sh line 122: simple_if_init $h2 203.0.113.2/24 2001:db8:4::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:4::2/64 In custom_multipath_hash.sh line 123: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In custom_multipath_hash.sh line 124: ip -6 route add vrf v$h2 default via 2001:db8:4::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:4::1 dev "$h2" In custom_multipath_hash.sh line 129: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In custom_multipath_hash.sh line 130: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In custom_multipath_hash.sh line 131: simple_if_fini $h2 203.0.113.2/24 2001:db8:4::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:4::2/64 In custom_multipath_hash.sh line 174: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In custom_multipath_hash.sh line 179: ping6_test $h1 2001:db8:4::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:4::2 In custom_multipath_hash.sh line 184: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 186: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 191: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 193: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 198: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 200: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In custom_multipath_hash.sh line 205: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In custom_multipath_hash.sh line 207: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In custom_multipath_hash.sh line 212: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 214: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 219: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 221: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In custom_multipath_hash.sh line 227: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In custom_multipath_hash.sh line 235: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 237: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In custom_multipath_hash.sh line 242: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In custom_multipath_hash.sh line 244: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In custom_multipath_hash.sh line 251: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In custom_multipath_hash.sh line 255: local t0_rp11=$(link_stats_tx_packets_get $rp11) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_rp11=$(link_stats_tx_packets_get "$rp11") In custom_multipath_hash.sh line 256: local t0_rp12=$(link_stats_tx_packets_get $rp12) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_rp12=$(link_stats_tx_packets_get "$rp12") In custom_multipath_hash.sh line 260: local t1_rp11=$(link_stats_tx_packets_get $rp11) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_rp11=$(link_stats_tx_packets_get "$rp11") In custom_multipath_hash.sh line 261: local t1_rp12=$(link_stats_tx_packets_get $rp12) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_rp12=$(link_stats_tx_packets_get "$rp12") In custom_multipath_hash.sh line 269: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In custom_multipath_hash.sh line 270: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In custom_multipath_hash.sh line 372: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/gre_custom_multipath_hash.sh - 445306b7293eb5abcc5103adcd817f49fc36f06a5909e8bc59e17582e8a25de0 In gre_custom_multipath_hash.sh line 89: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In gre_custom_multipath_hash.sh line 90: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In gre_custom_multipath_hash.sh line 91: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In gre_custom_multipath_hash.sh line 96: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In gre_custom_multipath_hash.sh line 97: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In gre_custom_multipath_hash.sh line 98: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In gre_custom_multipath_hash.sh line 103: simple_if_init $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In gre_custom_multipath_hash.sh line 104: __simple_if_init $ul1 v$ol1 192.0.2.17/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul1" v"$ol1" 192.0.2.17/28 In gre_custom_multipath_hash.sh line 106: tunnel_create g1 gre 192.0.2.1 192.0.2.2 tos inherit dev v$ol1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tunnel_create g1 gre 192.0.2.1 192.0.2.2 tos inherit dev v"$ol1" In gre_custom_multipath_hash.sh line 107: __simple_if_init g1 v$ol1 192.0.2.1/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g1 v"$ol1" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 108: ip route add vrf v$ol1 192.0.2.2/32 via 192.0.2.18 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 192.0.2.2/32 via 192.0.2.18 In gre_custom_multipath_hash.sh line 110: ip route add vrf v$ol1 203.0.113.0/24 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 203.0.113.0/24 dev g1 In gre_custom_multipath_hash.sh line 111: ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol1" 2001:db8:2::/64 dev g1 In gre_custom_multipath_hash.sh line 116: ip -6 route del vrf v$ol1 2001:db8:2::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol1" 2001:db8:2::/64 In gre_custom_multipath_hash.sh line 117: ip route del vrf v$ol1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 203.0.113.0/24 In gre_custom_multipath_hash.sh line 119: ip route del vrf v$ol1 192.0.2.2/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 123: __simple_if_fini $ul1 192.0.2.17/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul1" 192.0.2.17/28 In gre_custom_multipath_hash.sh line 124: simple_if_fini $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In gre_custom_multipath_hash.sh line 129: simple_if_init $ul21 192.0.2.18/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul21" 192.0.2.18/28 In gre_custom_multipath_hash.sh line 130: __simple_if_init $ul22 v$ul21 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul22" v"$ul21" In gre_custom_multipath_hash.sh line 131: vlan_create $ul22 111 v$ul21 192.0.2.33/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 111 v"$ul21" 192.0.2.33/28 In gre_custom_multipath_hash.sh line 132: vlan_create $ul22 222 v$ul21 192.0.2.49/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 222 v"$ul21" 192.0.2.49/28 In gre_custom_multipath_hash.sh line 134: ip route add vrf v$ul21 192.0.2.1/32 via 192.0.2.17 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul21" 192.0.2.1/32 via 192.0.2.17 In gre_custom_multipath_hash.sh line 135: ip route add vrf v$ul21 192.0.2.2/32 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul21" 192.0.2.2/32 \ In gre_custom_multipath_hash.sh line 142: ip route del vrf v$ul21 192.0.2.2/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul21" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 143: ip route del vrf v$ul21 192.0.2.1/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul21" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 145: vlan_destroy $ul22 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 222 In gre_custom_multipath_hash.sh line 146: vlan_destroy $ul22 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 111 In gre_custom_multipath_hash.sh line 147: __simple_if_fini $ul22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul22" In gre_custom_multipath_hash.sh line 148: simple_if_fini $ul21 192.0.2.18/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul21" 192.0.2.18/28 In gre_custom_multipath_hash.sh line 153: simple_if_init $ul31 192.0.2.65/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul31" 192.0.2.65/28 In gre_custom_multipath_hash.sh line 154: __simple_if_init $ul32 v$ul31 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul32" v"$ul31" In gre_custom_multipath_hash.sh line 155: vlan_create $ul32 111 v$ul31 192.0.2.34/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 111 v"$ul31" 192.0.2.34/28 In gre_custom_multipath_hash.sh line 156: vlan_create $ul32 222 v$ul31 192.0.2.50/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 222 v"$ul31" 192.0.2.50/28 In gre_custom_multipath_hash.sh line 158: ip route add vrf v$ul31 192.0.2.2/32 via 192.0.2.66 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul31" 192.0.2.2/32 via 192.0.2.66 In gre_custom_multipath_hash.sh line 159: ip route add vrf v$ul31 192.0.2.1/32 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ul31" 192.0.2.1/32 \ In gre_custom_multipath_hash.sh line 163: tc qdisc add dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$ul32" clsact In gre_custom_multipath_hash.sh line 164: tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 111 prot 802.1Q \ In gre_custom_multipath_hash.sh line 166: tc filter add dev $ul32 ingress pref 222 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 222 prot 802.1Q \ In gre_custom_multipath_hash.sh line 172: tc qdisc del dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$ul32" clsact In gre_custom_multipath_hash.sh line 174: ip route del vrf v$ul31 192.0.2.1/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul31" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 175: ip route del vrf v$ul31 192.0.2.2/32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ul31" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 177: vlan_destroy $ul32 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 222 In gre_custom_multipath_hash.sh line 178: vlan_destroy $ul32 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 111 In gre_custom_multipath_hash.sh line 179: __simple_if_fini $ul32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul32" In gre_custom_multipath_hash.sh line 180: simple_if_fini $ul31 192.0.2.65/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul31" 192.0.2.65/28 In gre_custom_multipath_hash.sh line 185: simple_if_init $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In gre_custom_multipath_hash.sh line 186: __simple_if_init $ul4 v$ol4 192.0.2.66/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul4" v"$ol4" 192.0.2.66/28 In gre_custom_multipath_hash.sh line 188: tunnel_create g2 gre 192.0.2.2 192.0.2.1 tos inherit dev v$ol4 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tunnel_create g2 gre 192.0.2.2 192.0.2.1 tos inherit dev v"$ol4" In gre_custom_multipath_hash.sh line 189: __simple_if_init g2 v$ol4 192.0.2.2/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g2 v"$ol4" 192.0.2.2/32 In gre_custom_multipath_hash.sh line 190: ip route add vrf v$ol4 192.0.2.1/32 via 192.0.2.65 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 192.0.2.1/32 via 192.0.2.65 In gre_custom_multipath_hash.sh line 192: ip route add vrf v$ol4 198.51.100.0/24 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 198.51.100.0/24 dev g2 In gre_custom_multipath_hash.sh line 193: ip -6 route add vrf v$ol4 2001:db8:1::/64 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:1::/64 dev g2 In gre_custom_multipath_hash.sh line 198: ip -6 route del vrf v$ol4 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:1::/64 In gre_custom_multipath_hash.sh line 199: ip route del vrf v$ol4 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 198.51.100.0/24 In gre_custom_multipath_hash.sh line 201: ip route del vrf v$ol4 192.0.2.1/32 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 192.0.2.1/32 In gre_custom_multipath_hash.sh line 205: __simple_if_fini $ul4 192.0.2.66/28 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul4" 192.0.2.66/28 In gre_custom_multipath_hash.sh line 206: simple_if_fini $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In gre_custom_multipath_hash.sh line 211: simple_if_init $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:2::2/64 In gre_custom_multipath_hash.sh line 212: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In gre_custom_multipath_hash.sh line 213: ip -6 route add vrf v$h2 default via 2001:db8:2::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:2::1 dev "$h2" In gre_custom_multipath_hash.sh line 218: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In gre_custom_multipath_hash.sh line 219: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In gre_custom_multipath_hash.sh line 220: simple_if_fini $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:2::2/64 In gre_custom_multipath_hash.sh line 269: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In gre_custom_multipath_hash.sh line 274: ping6_test $h1 2001:db8:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:2::2 In gre_custom_multipath_hash.sh line 279: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 281: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 286: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 288: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 293: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 295: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In gre_custom_multipath_hash.sh line 300: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 302: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In gre_custom_multipath_hash.sh line 307: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 309: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 314: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 316: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In gre_custom_multipath_hash.sh line 322: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In gre_custom_multipath_hash.sh line 330: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 332: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In gre_custom_multipath_hash.sh line 337: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In gre_custom_multipath_hash.sh line 339: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In gre_custom_multipath_hash.sh line 346: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In gre_custom_multipath_hash.sh line 350: local t0_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_111=$(tc_rule_stats_get "$ul32" 111 ingress) In gre_custom_multipath_hash.sh line 351: local t0_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_222=$(tc_rule_stats_get "$ul32" 222 ingress) In gre_custom_multipath_hash.sh line 355: local t1_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_111=$(tc_rule_stats_get "$ul32" 111 ingress) In gre_custom_multipath_hash.sh line 356: local t1_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_222=$(tc_rule_stats_get "$ul32" 222 ingress) In gre_custom_multipath_hash.sh line 364: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In gre_custom_multipath_hash.sh line 365: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In gre_custom_multipath_hash.sh line 464: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/ip6_forward_instats_vrf.sh - 51b183061a61f70f33d0edb53e8a0e0c4837b86543d268b3bf48cfdcda42e179 In ip6_forward_instats_vrf.sh line 17: require_command $TROUTE6 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TROUTE6" In ip6_forward_instats_vrf.sh line 21: simple_if_init $h1 2001:1:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 2001:1:1::2/64 In ip6_forward_instats_vrf.sh line 22: ip -6 route add vrf v$h1 2001:1:2::/64 via 2001:1:1::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" 2001:1:2::/64 via 2001:1:1::1 In ip6_forward_instats_vrf.sh line 27: ip -6 route del vrf v$h1 2001:1:2::/64 via 2001:1:1::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" 2001:1:2::/64 via 2001:1:1::1 In ip6_forward_instats_vrf.sh line 28: simple_if_fini $h1 2001:1:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 2001:1:1::2/64 In ip6_forward_instats_vrf.sh line 34: __simple_if_init $rtr1 router 2001:1:1::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rtr1" router 2001:1:1::1/64 In ip6_forward_instats_vrf.sh line 35: __simple_if_init $rtr2 router 2001:1:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$rtr2" router 2001:1:2::1/64 In ip6_forward_instats_vrf.sh line 36: mtu_set $rtr2 1280 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_set "$rtr2" 1280 In ip6_forward_instats_vrf.sh line 41: mtu_restore $rtr2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_restore "$rtr2" In ip6_forward_instats_vrf.sh line 42: __simple_if_fini $rtr2 2001:1:2::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rtr2" 2001:1:2::1/64 In ip6_forward_instats_vrf.sh line 43: __simple_if_fini $rtr1 2001:1:1::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$rtr1" 2001:1:1::1/64 In ip6_forward_instats_vrf.sh line 49: simple_if_init $h2 2001:1:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 2001:1:2::2/64 In ip6_forward_instats_vrf.sh line 50: ip -6 route add vrf v$h2 2001:1:1::/64 via 2001:1:2::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" 2001:1:1::/64 via 2001:1:2::1 In ip6_forward_instats_vrf.sh line 51: mtu_set $h2 1280 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_set "$h2" 1280 In ip6_forward_instats_vrf.sh line 56: mtu_restore $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mtu_restore "$h2" In ip6_forward_instats_vrf.sh line 57: ip -6 route del vrf v$h2 2001:1:1::/64 via 2001:1:2::1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" 2001:1:1::/64 via 2001:1:2::1 In ip6_forward_instats_vrf.sh line 58: simple_if_fini $h2 2001:1:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 2001:1:2::2/64 In ip6_forward_instats_vrf.sh line 93: local t0=$(ipv6_stats_get $rtr1 Ip6InTooBigErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InTooBigErrors) In ip6_forward_instats_vrf.sh line 94: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 97: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 98: $PING6 -s 1300 -c 1 -w $PING_TIMEOUT 2001:1:2::2 &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" -s 1300 -c 1 -w "$PING_TIMEOUT" 2001:1:2::2 &> /dev/null In ip6_forward_instats_vrf.sh line 100: local t1=$(ipv6_stats_get $rtr1 Ip6InTooBigErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InTooBigErrors) In ip6_forward_instats_vrf.sh line 110: local t0=$(ipv6_stats_get $rtr1 Ip6InHdrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InHdrErrors) In ip6_forward_instats_vrf.sh line 111: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 115: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 116: $TROUTE6 2001:1:2::2 &> /dev/null ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$TROUTE6" 2001:1:2::2 &> /dev/null In ip6_forward_instats_vrf.sh line 118: local t1=$(ipv6_stats_get $rtr1 Ip6InHdrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InHdrErrors) In ip6_forward_instats_vrf.sh line 128: local t0=$(ipv6_stats_get $rtr1 Ip6InAddrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InAddrErrors) In ip6_forward_instats_vrf.sh line 129: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 133: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 134: $PING6 -c 1 -w $PING_TIMEOUT 2001:1:2::2 &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" -c 1 -w "$PING_TIMEOUT" 2001:1:2::2 &> /dev/null In ip6_forward_instats_vrf.sh line 137: local t1=$(ipv6_stats_get $rtr1 Ip6InAddrErrors) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InAddrErrors) In ip6_forward_instats_vrf.sh line 147: local t0=$(ipv6_stats_get $rtr1 Ip6InDiscards) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0=$(ipv6_stats_get "$rtr1" Ip6InDiscards) In ip6_forward_instats_vrf.sh line 148: local vrf_name=$(master_name_get $h1) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$h1") In ip6_forward_instats_vrf.sh line 152: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In ip6_forward_instats_vrf.sh line 153: $PING6 -c 1 -w $PING_TIMEOUT 2001:1:2::2 &> /dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" -c 1 -w "$PING_TIMEOUT" 2001:1:2::2 &> /dev/null In ip6_forward_instats_vrf.sh line 156: local t1=$(ipv6_stats_get $rtr1 Ip6InDiscards) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1=$(ipv6_stats_get "$rtr1" Ip6InDiscards) In ip6_forward_instats_vrf.sh line 165: ping6_test $h1 2001:1:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:1:2::2 In ip6_forward_instats_vrf.sh line 174: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/ip6gre_custom_multipath_hash.sh - 76a16a84cf1e44787fb34c93910c240a7b20de5ee8162fba3a12fad494bdc972 In ip6gre_custom_multipath_hash.sh line 89: simple_if_init $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" 198.51.100.2/24 2001:db8:1::2/64 In ip6gre_custom_multipath_hash.sh line 90: ip route add vrf v$h1 default via 198.51.100.1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h1" default via 198.51.100.1 dev "$h1" In ip6gre_custom_multipath_hash.sh line 91: ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h1" default via 2001:db8:1::1 dev "$h1" In ip6gre_custom_multipath_hash.sh line 96: ip -6 route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h1" default In ip6gre_custom_multipath_hash.sh line 97: ip route del vrf v$h1 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h1" default In ip6gre_custom_multipath_hash.sh line 98: simple_if_fini $h1 198.51.100.2/24 2001:db8:1::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" 198.51.100.2/24 2001:db8:1::2/64 In ip6gre_custom_multipath_hash.sh line 103: simple_if_init $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In ip6gre_custom_multipath_hash.sh line 104: __simple_if_init $ul1 v$ol1 2001:db8:10::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul1" v"$ol1" 2001:db8:10::1/64 In ip6gre_custom_multipath_hash.sh line 107: dev v$ol1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev v"$ol1" In ip6gre_custom_multipath_hash.sh line 108: __simple_if_init g1 v$ol1 2001:db8:3::1/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g1 v"$ol1" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 109: ip route add vrf v$ol1 2001:db8:3::2/128 via 2001:db8:10::2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 2001:db8:3::2/128 via 2001:db8:10::2 In ip6gre_custom_multipath_hash.sh line 111: ip route add vrf v$ol1 203.0.113.0/24 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol1" 203.0.113.0/24 dev g1 In ip6gre_custom_multipath_hash.sh line 112: ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol1" 2001:db8:2::/64 dev g1 In ip6gre_custom_multipath_hash.sh line 117: ip -6 route del vrf v$ol1 2001:db8:2::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol1" 2001:db8:2::/64 In ip6gre_custom_multipath_hash.sh line 118: ip route del vrf v$ol1 203.0.113.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 203.0.113.0/24 In ip6gre_custom_multipath_hash.sh line 120: ip route del vrf v$ol1 2001:db8:3::2/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol1" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 124: __simple_if_fini $ul1 2001:db8:10::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul1" 2001:db8:10::1/64 In ip6gre_custom_multipath_hash.sh line 125: simple_if_fini $ol1 198.51.100.1/24 2001:db8:1::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol1" 198.51.100.1/24 2001:db8:1::1/64 In ip6gre_custom_multipath_hash.sh line 130: simple_if_init $ul21 2001:db8:10::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul21" 2001:db8:10::2/64 In ip6gre_custom_multipath_hash.sh line 131: __simple_if_init $ul22 v$ul21 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul22" v"$ul21" In ip6gre_custom_multipath_hash.sh line 132: vlan_create $ul22 111 v$ul21 2001:db8:11::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 111 v"$ul21" 2001:db8:11::1/64 In ip6gre_custom_multipath_hash.sh line 133: vlan_create $ul22 222 v$ul21 2001:db8:12::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul22" 222 v"$ul21" 2001:db8:12::1/64 In ip6gre_custom_multipath_hash.sh line 135: ip -6 route add vrf v$ul21 2001:db8:3::1/128 via 2001:db8:10::1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul21" 2001:db8:3::1/128 via 2001:db8:10::1 In ip6gre_custom_multipath_hash.sh line 136: ip -6 route add vrf v$ul21 2001:db8:3::2/128 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul21" 2001:db8:3::2/128 \ In ip6gre_custom_multipath_hash.sh line 143: ip -6 route del vrf v$ul21 2001:db8:3::2/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul21" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 144: ip -6 route del vrf v$ul21 2001:db8:3::1/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul21" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 146: vlan_destroy $ul22 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 222 In ip6gre_custom_multipath_hash.sh line 147: vlan_destroy $ul22 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul22" 111 In ip6gre_custom_multipath_hash.sh line 148: __simple_if_fini $ul22 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul22" In ip6gre_custom_multipath_hash.sh line 149: simple_if_fini $ul21 2001:db8:10::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul21" 2001:db8:10::2/64 In ip6gre_custom_multipath_hash.sh line 154: simple_if_init $ul31 2001:db8:13::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ul31" 2001:db8:13::1/64 In ip6gre_custom_multipath_hash.sh line 155: __simple_if_init $ul32 v$ul31 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul32" v"$ul31" In ip6gre_custom_multipath_hash.sh line 156: vlan_create $ul32 111 v$ul31 2001:db8:11::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 111 v"$ul31" 2001:db8:11::2/64 In ip6gre_custom_multipath_hash.sh line 157: vlan_create $ul32 222 v$ul31 2001:db8:12::2/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$ul32" 222 v"$ul31" 2001:db8:12::2/64 In ip6gre_custom_multipath_hash.sh line 159: ip -6 route add vrf v$ul31 2001:db8:3::2/128 via 2001:db8:13::2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul31" 2001:db8:3::2/128 via 2001:db8:13::2 In ip6gre_custom_multipath_hash.sh line 160: ip -6 route add vrf v$ul31 2001:db8:3::1/128 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ul31" 2001:db8:3::1/128 \ In ip6gre_custom_multipath_hash.sh line 164: tc qdisc add dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$ul32" clsact In ip6gre_custom_multipath_hash.sh line 165: tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 111 prot 802.1Q \ In ip6gre_custom_multipath_hash.sh line 167: tc filter add dev $ul32 ingress pref 222 prot 802.1Q \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$ul32" ingress pref 222 prot 802.1Q \ In ip6gre_custom_multipath_hash.sh line 173: tc qdisc del dev $ul32 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$ul32" clsact In ip6gre_custom_multipath_hash.sh line 175: ip -6 route del vrf v$ul31 2001:db8:3::1/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul31" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 176: ip -6 route del vrf v$ul31 2001:db8:3::2/128 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ul31" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 178: vlan_destroy $ul32 222 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 222 In ip6gre_custom_multipath_hash.sh line 179: vlan_destroy $ul32 111 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$ul32" 111 In ip6gre_custom_multipath_hash.sh line 180: __simple_if_fini $ul32 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul32" In ip6gre_custom_multipath_hash.sh line 181: simple_if_fini $ul31 2001:db8:13::1/64 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ul31" 2001:db8:13::1/64 In ip6gre_custom_multipath_hash.sh line 186: simple_if_init $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In ip6gre_custom_multipath_hash.sh line 187: __simple_if_init $ul4 v$ol4 2001:db8:13::2/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$ul4" v"$ol4" 2001:db8:13::2/64 In ip6gre_custom_multipath_hash.sh line 190: dev v$ol4 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev v"$ol4" In ip6gre_custom_multipath_hash.sh line 191: __simple_if_init g2 v$ol4 2001:db8:3::2/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init g2 v"$ol4" 2001:db8:3::2/128 In ip6gre_custom_multipath_hash.sh line 192: ip -6 route add vrf v$ol4 2001:db8:3::1/128 via 2001:db8:13::1 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:3::1/128 via 2001:db8:13::1 In ip6gre_custom_multipath_hash.sh line 194: ip route add vrf v$ol4 198.51.100.0/24 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$ol4" 198.51.100.0/24 dev g2 In ip6gre_custom_multipath_hash.sh line 195: ip -6 route add vrf v$ol4 2001:db8:1::/64 dev g2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$ol4" 2001:db8:1::/64 dev g2 In ip6gre_custom_multipath_hash.sh line 200: ip -6 route del vrf v$ol4 2001:db8:1::/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:1::/64 In ip6gre_custom_multipath_hash.sh line 201: ip route del vrf v$ol4 198.51.100.0/24 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$ol4" 198.51.100.0/24 In ip6gre_custom_multipath_hash.sh line 203: ip -6 route del vrf v$ol4 2001:db8:3::1/128 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$ol4" 2001:db8:3::1/128 In ip6gre_custom_multipath_hash.sh line 207: __simple_if_fini $ul4 2001:db8:13::2/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$ul4" 2001:db8:13::2/64 In ip6gre_custom_multipath_hash.sh line 208: simple_if_fini $ol4 203.0.113.1/24 2001:db8:2::1/64 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$ol4" 203.0.113.1/24 2001:db8:2::1/64 In ip6gre_custom_multipath_hash.sh line 213: simple_if_init $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" 203.0.113.2/24 2001:db8:2::2/64 In ip6gre_custom_multipath_hash.sh line 214: ip route add vrf v$h2 default via 203.0.113.1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route add vrf v"$h2" default via 203.0.113.1 dev "$h2" In ip6gre_custom_multipath_hash.sh line 215: ip -6 route add vrf v$h2 default via 2001:db8:2::1 dev $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route add vrf v"$h2" default via 2001:db8:2::1 dev "$h2" In ip6gre_custom_multipath_hash.sh line 220: ip -6 route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -6 route del vrf v"$h2" default In ip6gre_custom_multipath_hash.sh line 221: ip route del vrf v$h2 default ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip route del vrf v"$h2" default In ip6gre_custom_multipath_hash.sh line 222: simple_if_fini $h2 203.0.113.2/24 2001:db8:2::2/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" 203.0.113.2/24 2001:db8:2::2/64 In ip6gre_custom_multipath_hash.sh line 271: ping_test $h1 203.0.113.2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_test "$h1" 203.0.113.2 In ip6gre_custom_multipath_hash.sh line 276: ping6_test $h1 2001:db8:2::2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_test "$h1" 2001:db8:2::2 In ip6gre_custom_multipath_hash.sh line 281: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 283: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 288: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 290: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 295: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 297: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In ip6gre_custom_multipath_hash.sh line 302: ip vrf exec v$h1 $MZ $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 304: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In ip6gre_custom_multipath_hash.sh line 309: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 311: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 316: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 318: -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -c 50 -t udp "sp=20000,dp=30000" In ip6gre_custom_multipath_hash.sh line 324: ip vrf exec v$h1 sh -c \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" sh -c \ In ip6gre_custom_multipath_hash.sh line 332: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 334: -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=0-32768,dp=30000" In ip6gre_custom_multipath_hash.sh line 339: ip vrf exec v$h1 $MZ -6 $h1 -q -p 64 \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec v"$h1" "$MZ" -6 "$h1" -q -p 64 \ In ip6gre_custom_multipath_hash.sh line 341: -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -d "$MZ_DELAY" -t udp "sp=20000,dp=0-32768" In ip6gre_custom_multipath_hash.sh line 348: local send_flows="$@" ^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. In ip6gre_custom_multipath_hash.sh line 352: local t0_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_111=$(tc_rule_stats_get "$ul32" 111 ingress) In ip6gre_custom_multipath_hash.sh line 353: local t0_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t0_222=$(tc_rule_stats_get "$ul32" 222 ingress) In ip6gre_custom_multipath_hash.sh line 357: local t1_111=$(tc_rule_stats_get $ul32 111 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_111=$(tc_rule_stats_get "$ul32" 111 ingress) In ip6gre_custom_multipath_hash.sh line 358: local t1_222=$(tc_rule_stats_get $ul32 222 ingress) ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t1_222=$(tc_rule_stats_get "$ul32" 222 ingress) In ip6gre_custom_multipath_hash.sh line 366: local pct=$(echo "$diff / $sum * 100" | bc -l) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In ip6gre_custom_multipath_hash.sh line 367: local is_balanced=$(echo "-20 <= $pct && $pct <= 20" | bc) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In ip6gre_custom_multipath_hash.sh line 466: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A... https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/lib.sh - e1a847ed4d4592e29820ec7d4d0de16c1b815b225d7508d588b8b4f99ffa9610 In lib.sh line 97: basename `realpath $driver_path` ^---------------------^ SC2046 (warning): Quote this to prevent word splitting. ^---------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: basename $(realpath "$driver_path") In lib.sh line 103: local ifnames=`ip -j link show | jq -r ".[].ifname"` ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: local ifnames=$(ip -j link show | jq -r ".[].ifname") In lib.sh line 108: local driver_name=`driver_name_get $ifname` ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-----------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local driver_name=$(driver_name_get "$ifname") In lib.sh line 109: if [[ ! -z $driver_name && $driver_name == $NETIF_FIND_DRIVER ]]; then ^-- SC2236 (style): Use -n instead of ! -z. ^----------------^ SC2053 (warning): Quote the right-hand side of == in [[ ]] to prevent glob matching. In lib.sh line 128: source "$net_forwarding_dir/forwarding.config" ^-- SC1091 (info): Not following: ./forwarding.config: openBinaryFile: does not exist (No such file or directory) In lib.sh line 139: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 149: tc filter add dev $dev ingress pref 1 handle 1 flower \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress pref 1 handle 1 flower \ In lib.sh line 151: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 155: tc filter del dev $dev ingress pref 1 handle 1 flower \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress pref 1 handle 1 flower \ In lib.sh line 164: tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 166: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 170: tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 180: tc filter add dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 184: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 189: tc -j filter show dev $dev ingress protocol mpls_uc | jq . &> /dev/null ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j filter show dev "$dev" ingress protocol mpls_uc | jq . &> /dev/null In lib.sh line 191: tc filter del dev $dev ingress protocol mpls_uc pref 1 handle 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" ingress protocol mpls_uc pref 1 handle 1 \ In lib.sh line 203: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 212: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 221: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 230: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 239: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 248: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 257: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 268: [ 0 -ne $(ethtool --json -S $dev --all-groups --src pmac 2>/dev/null \ ^-- SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ 0 -ne $(ethtool --json -S "$dev" --all-groups --src pmac 2>/dev/null \ In lib.sh line 297: local driver_name=`driver_name_get $dev` ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local driver_name=$(driver_name_get "$dev") In lib.sh line 299: if [[ $driver_name != $expected ]]; then ^-------^ SC2053 (warning): Quote the right-hand side of != in [[ ]] to prevent glob matching. In lib.sh line 312: local version="$(msend -v)" ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 316: major=$(echo $version | cut -d. -f1) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: major=$(echo "$version" | cut -d. -f1) In lib.sh line 318: if [ $major -lt 3 ]; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$major" -lt 3 ]; then In lib.sh line 328: require_command $MZ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$MZ" In lib.sh line 331: require_command $TEAMD ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TEAMD" In lib.sh line 364: echo "SKIP: Importer requires $NUM_NETIFS NETIFS, but only ${#NETIFS[@]} are defined (${NETIFS[@]})" ^----------^ SC2145 (error): Argument mixes string and array. Use * or separate argument. In lib.sh line 382: if [ -z ${NETIFS[p$i]} ]; then ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "${NETIFS[p$i]}" ]; then In lib.sh line 387: ip link show dev ${NETIFS[p$i]} &> /dev/null ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "${NETIFS[p$i]}" &> /dev/null In lib.sh line 388: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 389: ip link add ${NETIFS[p$i]} type veth \ ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add "${NETIFS[p$i]}" type veth \ In lib.sh line 390: peer name ${NETIFS[p$j]} ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: peer name "${NETIFS[p$j]}" In lib.sh line 391: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 405: *) echo "Can not create interfaces of type \'$NETIF_TYPE\'" ^-- SC2028 (info): echo may not expand escape sequences. Use printf. In lib.sh line 421: MAC_ADDR_ORIG["$dev"]=$(ip -j link show dev $dev | jq -e '.[].address') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: MAC_ADDR_ORIG["$dev"]=$(ip -j link show dev "$dev" | jq -e '.[].address') In lib.sh line 424: ip link set dev $dev address $new_addr ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" address "$new_addr" In lib.sh line 434: ip link set dev $dev address ${MAC_ADDR_ORIG["$dev"]} ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" address "${MAC_ADDR_ORIG["$dev"]}" In lib.sh line 447: ip link show dev ${NETIFS[p$i]} &> /dev/null ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "${NETIFS[p$i]}" &> /dev/null In lib.sh line 448: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 460: [[ $? != 0 ]] ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 468: for cur in ${arr[@]}; do ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In lib.sh line 474: echo $max ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$max" In lib.sh line 490: $@ | grep $addr | grep $flag "$word" ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $@ | grep "$addr" | grep "$flag" "$word" In lib.sh line 513: setup_wait_dev_with_timeout "$dev" $INTERFACE_TIMEOUT $wait_time ^----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev_with_timeout "$dev" "$INTERFACE_TIMEOUT" "$wait_time" In lib.sh line 515: if (($?)); then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 529: for ((i = 1; i <= $max_iterations; ++i)); do ^-------------^ SC2004 (style): $/${} is unnecessary on arithmetic variables. In lib.sh line 530: ip link show dev $dev up \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link show dev "$dev" up \ In lib.sh line 532: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 535: sleep $wait_time ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sleep "$wait_time" In lib.sh line 549: setup_wait_dev ${NETIFS[p$i]} 0 ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "${NETIFS[p$i]}" 0 In lib.sh line 553: sleep $WAIT_TIME ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sleep "$WAIT_TIME" In lib.sh line 566: slowwait $timeout ip link show dev $dev &> /dev/null ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: slowwait "$timeout" ip link show dev "$dev" &> /dev/null In lib.sh line 567: if (( $? )); then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 570: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" In lib.sh line 578: read ^--^ SC2162 (info): read without -r will mangle backslashes. In lib.sh line 618: return ${__TB_IDS[$vrf_name]} ^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: return "${__TB_IDS[$vrf_name]}" In lib.sh line 626: __vrf_td_id_assign $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __vrf_td_id_assign "$vrf_name" In lib.sh line 629: ip link add dev $vrf_name type vrf table $tb_id ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add dev "$vrf_name" type vrf table $tb_id In lib.sh line 639: __vrf_td_id_lookup $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __vrf_td_id_lookup "$vrf_name" In lib.sh line 644: ip link del dev $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$vrf_name" In lib.sh line 658: ip address $add_del $addrstr dev $if_name ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip address "$add_del" "$addrstr" dev "$if_name" In lib.sh line 668: ip link set dev $if_name master $vrf_name ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" master "$vrf_name" In lib.sh line 669: ip link set dev $if_name up ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" up In lib.sh line 671: __addr_add_del $if_name add "${addrs[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$if_name" add "${addrs[@]}" In lib.sh line 679: __addr_add_del $if_name del "${addrs[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$if_name" del "${addrs[@]}" In lib.sh line 681: ip link set dev $if_name down ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" down In lib.sh line 682: ip link set dev $if_name nomaster ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" nomaster In lib.sh line 695: vrf_create $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_create "$vrf_name" In lib.sh line 696: ip link set dev $vrf_name up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" up In lib.sh line 697: __simple_if_init $if_name $vrf_name "${array[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_init "$if_name" "$vrf_name" "${array[@]}" In lib.sh line 710: __simple_if_fini $if_name "${array[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __simple_if_fini "$if_name" "${array[@]}" In lib.sh line 711: vrf_destroy $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_destroy "$vrf_name" In lib.sh line 721: ip link add name $name type $type \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name "$name" type "$type" \ In lib.sh line 722: local $local remote $remote "$@" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local "$local" remote "$remote" "$@" In lib.sh line 723: ip link set dev $name up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" up In lib.sh line 730: ip link del dev $name ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$name" In lib.sh line 741: ip link add name $name link $if_name type vlan id $vid ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name "$name" link "$if_name" type vlan id "$vid" In lib.sh line 743: ip link set dev $name master $vrf ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" master "$vrf" In lib.sh line 745: ip link set dev $name up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$name" up In lib.sh line 746: __addr_add_del $name add "${ips[@]}" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __addr_add_del "$name" add "${ips[@]}" In lib.sh line 755: ip link del dev $name ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$name" In lib.sh line 763: require_command $TEAMD ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$TEAMD" In lib.sh line 764: $TEAMD -t $if_name -d -c '{"runner": {"name": "'$mode'"}}' ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $TEAMD -t "$if_name" -d -c '{"runner": {"name": "'"$mode"'"}}' In lib.sh line 766: ip link set dev $slave down ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" down In lib.sh line 767: ip link set dev $slave master $if_name ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" master "$if_name" In lib.sh line 768: ip link set dev $slave up ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$slave" up In lib.sh line 770: ip link set dev $if_name up ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$if_name" up In lib.sh line 777: $TEAMD -t $if_name -k ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $TEAMD -t "$if_name" -k In lib.sh line 784: ip -j link show dev $if_name | jq -r '.[]["master"]' ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j link show dev "$if_name" | jq -r '.[]["master"]' In lib.sh line 793: ip -j -s link show dev $if_name \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j -s link show dev "$if_name" \ In lib.sh line 794: | jq '.[]["stats64"]["'$dir'"]["'$stat'"]' ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: | jq '.[]["stats64"]["'"$dir"'"]["'"$stat"'"]' In lib.sh line 799: link_stats_get $1 tx packets ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: link_stats_get "$1" tx packets In lib.sh line 804: link_stats_get $1 rx errors ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: link_stats_get "$1" rx errors In lib.sh line 812: ethtool -S $dev | grep "^ *$stat:" | head -n 1 | cut -d: -f2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -S "$dev" | grep "^ *$stat:" | head -n 1 | cut -d: -f2 In lib.sh line 822: ethtool --json -S $dev --groups $grp -- --src $src | \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --json -S "$dev" --groups "$grp" -- --src "$src" | \ In lib.sh line 823: jq '.[]."'"$grp"'"."'$name'"' ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: jq '.[]."'"$grp"'"."'"$name"'"' In lib.sh line 851: cat /proc/net/dev_snmp6/$dev | grep "^$stat" | cut -f2 ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cat /proc/net/dev_snmp6/"$dev" | grep "^$stat" | cut -f2 In lib.sh line 861: ip -j stats show dev $if_name group offload subgroup $suite | ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j stats show dev "$if_name" group offload subgroup "$suite" | In lib.sh line 871: ip -j -s -s nexthop show id $group_id | ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j -s -s nexthop show id "$group_id" | In lib.sh line 962: ip -j addr show dev $if_name | \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip -j addr show dev "$if_name" | \ In lib.sh line 973: ageing_time=$(ip -j -d link show dev $bridge \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ageing_time=$(ip -j -d link show dev "$bridge" \ In lib.sh line 983: SYSCTL_ORIG[$key]=$(sysctl -n $key) ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: SYSCTL_ORIG[$key]=$(sysctl -n "$key") In lib.sh line 992: sysctl -qw $key="$value" ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -qw "$key"="$value" In lib.sh line 999: sysctl -qw $key="${SYSCTL_ORIG[$key]}" ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl -qw "$key"="${SYSCTL_ORIG[$key]}" In lib.sh line 1020: MTU_ORIG["$dev"]=$(ip -j link show dev $dev | jq -e '.[].mtu') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: MTU_ORIG["$dev"]=$(ip -j link show dev "$dev" | jq -e '.[].mtu') In lib.sh line 1021: ip link set dev $dev mtu $mtu ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" mtu "$mtu" In lib.sh line 1028: ip link set dev $dev mtu ${MTU_ORIG["$dev"]} ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" mtu "${MTU_ORIG["$dev"]}" In lib.sh line 1036: ethtool -k ${NETIFS[p$i]} \ ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -k "${NETIFS[p$i]}" \ In lib.sh line 1038: if [[ $? -ne 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. In lib.sh line 1056: tc filter add dev $dev $direction pref 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" "$direction" pref 1 \ In lib.sh line 1058: || tc filter add dev $dev $direction pref 1 \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: || tc filter add dev "$dev" "$direction" pref 1 \ In lib.sh line 1067: tc filter del dev $dev $direction pref 1 flower ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$dev" "$direction" pref 1 flower In lib.sh line 1078: tc filter $add_del dev "$tundev" ingress \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter "$add_del" dev "$tundev" ingress \ In lib.sh line 1079: proto ip$vsuf pref $pref \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: proto ip"$vsuf" pref "$pref" \ In lib.sh line 1080: flower ip_proto icmp$vsuf $filter \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower ip_proto icmp"$vsuf" "$filter" \ In lib.sh line 1123: tc filter $add_del dev "$dev" ingress \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter "$add_del" dev "$dev" ingress \ In lib.sh line 1124: proto 802.1q pref $pref \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: proto 802.1q pref "$pref" \ In lib.sh line 1125: flower $filter \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower "$filter" \ In lib.sh line 1154: __icmp_capture_add_del $add_del $((dscp + 100)) "" $dev \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __icmp_capture_add_del "$add_del" $((dscp + 100)) "" "$dev" \ In lib.sh line 1164: __dscp_capture_add_del add $dev $base ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __dscp_capture_add_del add "$dev" "$base" In lib.sh line 1172: __dscp_capture_add_del del $dev $base ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __dscp_capture_add_del del "$dev" "$base" In lib.sh line 1182: local t=$(tc_rule_stats_get $dev $((dscp + 100))) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local t=$(tc_rule_stats_get "$dev" $((dscp + 100))) In lib.sh line 1191: tc qdisc add dev $dev clsact ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$dev" clsact In lib.sh line 1192: tc filter add dev $dev ingress \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$dev" ingress \ In lib.sh line 1238: diff=$(echo $weights_ratio - $packets_ratio | bc -l) ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: diff=$(echo "$weights_ratio" - "$packets_ratio" | bc -l) In lib.sh line 1251: ip netns exec $name bash <<-EOF ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns exec "$name" bash <<-EOF In lib.sh line 1268: vrf_name=$(master_name_get $if_name) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_name=$(master_name_get "$if_name") In lib.sh line 1269: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1270: $PING $args -c $PING_COUNT -i 0.1 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING" "$args" -c "$PING_COUNT" -i 0.1 \ In lib.sh line 1271: -w $PING_TIMEOUT $dip &> /dev/null ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -w "$PING_TIMEOUT" "$dip" &> /dev/null In lib.sh line 1278: ping_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_do "$1" "$2" In lib.sh line 1287: ping_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping_do "$1" "$2" In lib.sh line 1299: vrf_name=$(master_name_get $if_name) ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_name=$(master_name_get "$if_name") In lib.sh line 1300: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1301: $PING6 $args -c $PING_COUNT -i 0.1 \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$PING6" "$args" -c "$PING_COUNT" -i 0.1 \ In lib.sh line 1302: -w $PING_TIMEOUT $dip &> /dev/null ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -w "$PING_TIMEOUT" "$dip" &> /dev/null In lib.sh line 1309: ping6_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_do "$1" "$2" In lib.sh line 1318: ping6_do $1 $2 ^-- SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ping6_do "$1" "$2" In lib.sh line 1334: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1341: bridge link set dev $br_port1 flood off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" flood off In lib.sh line 1343: ip link set $host1_if promisc on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host1_if" promisc on In lib.sh line 1344: tc qdisc add dev $host1_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host1_if" ingress In lib.sh line 1345: tc filter add dev $host1_if ingress protocol ip pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host1_if" ingress protocol ip pref 1 handle 101 \ In lib.sh line 1348: $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host2_if" -c 1 -p 64 -b $mac -t ip -q In lib.sh line 1351: tc -j -s filter show dev $host1_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host1_if" ingress \ In lib.sh line 1356: $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -a $mac -t ip -q In lib.sh line 1359: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1363: $MZ $host2_if -c 1 -p 64 -b $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host2_if" -c 1 -p 64 -b $mac -t ip -q In lib.sh line 1366: tc -j -s filter show dev $host1_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host1_if" ingress \ In lib.sh line 1373: ageing_time=$(bridge_ageing_time_get $bridge) ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ageing_time=$(bridge_ageing_time_get "$bridge") In lib.sh line 1376: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1380: bridge link set dev $br_port1 learning off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" learning off In lib.sh line 1382: $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -a $mac -t ip -q In lib.sh line 1385: bridge -j fdb show br $bridge brport $br_port1 \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j fdb show br "$bridge" brport "$br_port1" \ In lib.sh line 1389: bridge link set dev $br_port1 learning on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" learning on In lib.sh line 1391: tc filter del dev $host1_if ingress protocol ip pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host1_if" ingress protocol ip pref 1 handle 101 flower In lib.sh line 1392: tc qdisc del dev $host1_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host1_if" ingress In lib.sh line 1393: ip link set $host1_if promisc off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host1_if" promisc off In lib.sh line 1395: bridge link set dev $br_port1 flood on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port1" flood on In lib.sh line 1411: ip link set $host2_if promisc on ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host2_if" promisc on In lib.sh line 1412: tc qdisc add dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host2_if" ingress In lib.sh line 1413: tc filter add dev $host2_if ingress protocol ip pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host2_if" ingress protocol ip pref 1 handle 101 \ In lib.sh line 1414: flower dst_mac $mac action drop ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower dst_mac "$mac" action drop In lib.sh line 1416: $MZ $host1_if -c 1 -p 64 -b $mac -B $ip -t ip -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" -c 1 -p 64 -b "$mac" -B "$ip" -t ip -q In lib.sh line 1419: tc -j -s filter show dev $host2_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host2_if" ingress \ In lib.sh line 1427: tc filter del dev $host2_if ingress protocol ip pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host2_if" ingress protocol ip pref 1 handle 101 flower In lib.sh line 1428: tc qdisc del dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host2_if" ingress In lib.sh line 1429: ip link set $host2_if promisc off ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$host2_if" promisc off In lib.sh line 1444: bridge link set dev $br_port flood off ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" flood off In lib.sh line 1446: flood_test_do false $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do false $mac $ip "$host1_if" "$host2_if" In lib.sh line 1449: bridge link set dev $br_port flood on ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" flood on In lib.sh line 1451: flood_test_do true $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do true $mac $ip "$host1_if" "$host2_if" In lib.sh line 1467: bridge link set dev $br_port mcast_flood off ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" mcast_flood off In lib.sh line 1469: flood_test_do false $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do false $mac $ip "$host1_if" "$host2_if" In lib.sh line 1472: bridge link set dev $br_port mcast_flood on ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$br_port" mcast_flood on In lib.sh line 1474: flood_test_do true $mac $ip $host1_if $host2_if ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_test_do true $mac $ip "$host1_if" "$host2_if" In lib.sh line 1487: flood_unicast_test $br_port $host1_if $host2_if ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_unicast_test "$br_port" "$host1_if" "$host2_if" In lib.sh line 1488: flood_multicast_test $br_port $host1_if $host2_if ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flood_multicast_test "$br_port" "$host1_if" "$host2_if" In lib.sh line 1501: $MZ $h_in -p $pktsize -A $sip -B $dip -c 0 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$h_in" -p "$pktsize" -A "$sip" -B "$dip" -c 0 \ In lib.sh line 1502: -a own -b $dmac -t "$proto" -q "${mz_args[@]}" & ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -a own -b "$dmac" -t "$proto" -q "${mz_args[@]}" & In lib.sh line 1515: __start_traffic $pktsize udp "$h_in" "$sip" "$dip" "$dmac" \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __start_traffic "$pktsize" udp "$h_in" "$sip" "$dip" "$dmac" \ In lib.sh line 1528: __start_traffic $pktsize tcp "$h_in" "$sip" "$dip" "$dmac" \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: __start_traffic "$pktsize" tcp "$h_in" "$sip" "$dip" "$dmac" \ In lib.sh line 1575: if [ -z $ns ]; then ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "$ns" ]; then In lib.sh line 1581: if [ -z $SUDO_USER ] ; then ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -z "$SUDO_USER" ] ; then In lib.sh line 1587: $ns_cmd tcpdump $TCPDUMP_EXTRA_FLAGS -e -n -Q in -i $if_name \ ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ns_cmd tcpdump "$TCPDUMP_EXTRA_FLAGS" -e -n -Q in -i "$if_name" \ In lib.sh line 1588: -s 65535 -B 32768 $capuser -w ${capfile[$if_name]} \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -s 65535 -B 32768 "$capuser" -w "${capfile[$if_name]}" \ In lib.sh line 1608: rm ${capfile[$if_name]} ${capout[$if_name]} ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm "${capfile[$if_name]}" "${capout[$if_name]}" In lib.sh line 1615: tcpdump -e -n -r ${capfile[$if_name]} 2>&1 ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tcpdump -e -n -r "${capfile[$if_name]}" 2>&1 In lib.sh line 1638: tc qdisc add dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$host2_if" ingress In lib.sh line 1639: tc filter add dev $host2_if ingress protocol $tc_proto pref 1 handle 101 \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$host2_if" ingress protocol $tc_proto pref 1 handle 101 \ In lib.sh line 1640: flower ip_proto udp dst_mac $mac action drop ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: flower ip_proto udp dst_mac "$mac" action drop In lib.sh line 1642: $MZ $host1_if $mz_v6arg -c 1 -p 64 -b $mac -A $src_ip -B $ip -t udp "dp=4096,sp=2048" -q ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$host1_if" $mz_v6arg -c 1 -p 64 -b "$mac" -A "$src_ip" -B "$ip" -t udp "dp=4096,sp=2048" -q In lib.sh line 1645: tc -j -s filter show dev $host2_if ingress \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc -j -s filter show dev "$host2_if" ingress \ In lib.sh line 1648: if [[ $? -eq 0 ]]; then ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. In lib.sh line 1652: tc filter del dev $host2_if ingress protocol $tc_proto pref 1 handle 101 flower ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$host2_if" ingress protocol $tc_proto pref 1 handle 101 flower In lib.sh line 1653: tc qdisc del dev $host2_if ingress ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$host2_if" ingress In lib.sh line 1688: mcast_packet_test $TEST_GROUP_MAC $src $TEST_GROUP $h2 $h1 ^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2154 (warning): h2 is referenced but not assigned. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2154 (warning): h1 is referenced but not assigned. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mcast_packet_test "$TEST_GROUP_MAC" "$src" "$TEST_GROUP" "$h2" "$h1" In lib.sh line 1690: if [ $should_fwd -eq 1 ]; then ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$should_fwd" -eq 1 ]; then In lib.sh line 1704: if [ $is_blocked -eq 1 ]; then ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$is_blocked" -eq 1 ]; then In lib.sh line 1729: local vrf_name=$(master_name_get $if_name) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$if_name") In lib.sh line 1734: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1735: mreceive -g $group -I $if_name > /dev/null 2>&1 & ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mreceive -g "$group" -I "$if_name" > /dev/null 2>&1 & In lib.sh line 1750: local vrf_name=$(master_name_get $if_name) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local vrf_name=$(master_name_get "$if_name") In lib.sh line 1752: ip vrf exec $vrf_name \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip vrf exec "$vrf_name" \ In lib.sh line 1753: msend -g $groups -I $if_name -c 1 > /dev/null 2>&1 ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msend -g "$groups" -I "$if_name" -c 1 > /dev/null 2>&1 In lib.sh line 1807: tmpfile=`mktemp /var/run/nexthoptestXXX` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: tmpfile=$(mktemp /var/run/nexthoptestXXX) In lib.sh line 1808: mpid=`($ip monitor $mtype > $tmpfile & echo $!) 2>/dev/null` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mpid=$(($ip monitor "$mtype" > "$tmpfile" & echo $!) 2>/dev/null) In lib.sh line 1821: kill $mpid ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: kill "$mpid" In lib.sh line 1822: local lines=`grep '^\w' $tmpfile | wc -l` ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local lines=$(grep '^\w' "$tmpfile" | wc -l) In lib.sh line 1823: test $lines -eq $el ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test "$lines" -eq "$el" In lib.sh line 1825: rm -rf $tmpfile ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: rm -rf "$tmpfile" In lib.sh line 1839: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1840: $ip stats set dev $dev ${type}_stats on ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ip stats set dev "$dev" "${type}"_stats on In lib.sh line 1841: stop_ip_monitor $ipmout 1 "${type}_stats enablement" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats enablement" In lib.sh line 1844: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1846: stop_ip_monitor $ipmout 1 "${type}_stats installation" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats installation" In lib.sh line 1849: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1851: stop_ip_monitor $ipmout 1 "${type}_stats deinstallation" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats deinstallation" In lib.sh line 1854: local ipmout=$(start_ip_monitor stats "$ip") ^----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1855: $ip stats set dev $dev ${type}_stats off ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $ip stats set dev "$dev" "${type}"_stats off In lib.sh line 1856: stop_ip_monitor $ipmout 1 "${type}_stats disablement" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: stop_ip_monitor "$ipmout" 1 "${type}_stats disablement" In lib.sh line 1865: printf '%02x:' ${IP//./ } | ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: printf '%02x:' "${IP//./ }" | In lib.sh line 1884: echo $allcol_ip | tr : '\n' | ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$allcol_ip" | tr : '\n' | In lib.sh line 1902: printf "%04x" $u16 | sed 's/^/000/;s/^.*\(..\)\(..\)$/\1:\2/' ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: printf "%04x" "$u16" | sed 's/^/000/;s/^.*\(..\)\(..\)$/\1:\2/' In lib.sh line 1941: local ckbytes=$(u16_to_bytes $checksum) ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local ckbytes=$(u16_to_bytes "$checksum") In lib.sh line 1943: echo "$payload" | sed "s/CHECKSUM/$ckbytes/g" ^-- SC2001 (style): See if you can use ${variable//search/replace} instead. In lib.sh line 1960: local nsources=$(u16_to_bytes ${#sources[@]}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1964: )"22:"$( : Type - Membership Report ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1965: )"00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1966: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1967: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1968: )"00:01:"$( : Number of Group Records ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1969: )"01:"$( : Record Type - IS_IN ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1970: )"00:"$( : Aux Data Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1971: )"${nsources}:"$( : Number of Sources ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1972: )"$(ipv4_to_bytes $GRP):"$( : Multicast Address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv4_to_bytes "$GRP"):"$( : Multicast Address In lib.sh line 1974: ipv4_to_bytes $src ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ipv4_to_bytes "$src" In lib.sh line 1978: local checksum=$(payload_template_calc_checksum "$igmpv3") ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1980: payload_template_expand_checksum "$igmpv3" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$igmpv3" "$checksum" In lib.sh line 1987: local payload=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1988: )"17:"$( : Type - Leave Group ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1989: )"00:"$( : Max Resp Time - not meaningful ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1990: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 1991: )"$(ipv4_to_bytes $GRP)"$( : Group Address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: )"$(ipv4_to_bytes "$GRP")"$( : Group Address In lib.sh line 1993: local checksum=$(payload_template_calc_checksum "$payload") ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 1995: payload_template_expand_checksum "$payload" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$payload" "$checksum" In lib.sh line 2006: local nsources=$(u16_to_bytes ${#sources[@]}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2009: )"3a:"$( : Next Header - ICMPv6 ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2010: )"00:"$( : Hdr Ext Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2015: )"8f:"$( : Type - MLDv2 Report ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2016: )"00:"$( : Code ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2017: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2018: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2019: )"00:01:"$( : Number of Group Records ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2020: )"01:"$( : Record Type - IS_IN ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2021: )"00:"$( : Aux Data Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2022: )"${nsources}:"$( : Number of Sources ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2023: )"$(ipv6_to_bytes $GRP):"$( : Multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : Multicast address In lib.sh line 2025: ipv6_to_bytes $src ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ipv6_to_bytes "$src" In lib.sh line 2030: local len=$(u16_to_bytes $(payload_template_nbytes $icmpv6)) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local len=$(u16_to_bytes $(payload_template_nbytes "$icmpv6")) In lib.sh line 2031: local sudohdr=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2032: )"$(ipv6_to_bytes $SIP):"$( : SIP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$SIP"):"$( : SIP In lib.sh line 2033: )"$(ipv6_to_bytes $GRP):"$( : DIP is multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : DIP is multicast address In lib.sh line 2034: )"${len}:"$( : Upper-layer length ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2037: local checksum=$(payload_template_calc_checksum ${sudohdr}${icmpv6}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local checksum=$(payload_template_calc_checksum "${sudohdr}""${icmpv6}") In lib.sh line 2039: payload_template_expand_checksum "$hbh$icmpv6" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$hbh$icmpv6" "$checksum" In lib.sh line 2051: )"3a:"$( : Next Header - ICMPv6 ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2052: )"00:"$( : Hdr Ext Len ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2057: )"84:"$( : Type - MLDv1 Done ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2058: )"00:"$( : Code ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2059: )"CHECKSUM:"$( : Checksum ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2060: )"00:00:"$( : Max Resp Delay - not meaningful ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2061: )"00:00:"$( : Reserved ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2062: )"$(ipv6_to_bytes $GRP):"$( : Multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : Multicast address In lib.sh line 2065: local len=$(u16_to_bytes $(payload_template_nbytes $icmpv6)) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2046 (warning): Quote this to prevent word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local len=$(u16_to_bytes $(payload_template_nbytes "$icmpv6")) In lib.sh line 2066: local sudohdr=$(: ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values. In lib.sh line 2067: )"$(ipv6_to_bytes $SIP):"$( : SIP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$SIP"):"$( : SIP In lib.sh line 2068: )"$(ipv6_to_bytes $GRP):"$( : DIP is multicast address ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. Did you mean: )"$(ipv6_to_bytes "$GRP"):"$( : DIP is multicast address In lib.sh line 2069: )"${len}:"$( : Upper-layer length ^-- SC2027 (warning): The surrounding quotes actually unquote this. Remove or escape them. In lib.sh line 2072: local checksum=$(payload_template_calc_checksum ${sudohdr}${icmpv6}) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local checksum=$(payload_template_calc_checksum "${sudohdr}""${icmpv6}") In lib.sh line 2074: payload_template_expand_checksum "$hbh$icmpv6" $checksum ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: payload_template_expand_checksum "$hbh$icmpv6" "$checksum" In lib.sh line 2103: log_test_skip $src:$caller ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: log_test_skip "$src":"$caller" In lib.sh line 2104: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" In lib.sh line 2121: local mac_addr=$(mac_get $dev) ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local mac_addr=$(mac_get "$dev") In lib.sh line 2122: local tmp=$(ether_addr_to_u64 $mac_addr) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local tmp=$(ether_addr_to_u64 "$mac_addr") In lib.sh line 2125: ip link set $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set "$dev" up In lib.sh line 2126: ip link add link $dev name macvlan-tmp type macvlan mode private ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add link "$dev" name macvlan-tmp type macvlan mode private In lib.sh line 2127: ip link set macvlan-tmp address $(u64_to_ether_addr $((tmp + 1))) ^-- SC2046 (warning): Quote this to prevent word splitting. In lib.sh line 2130: promisc=$(ip -j -d link show dev $dev | jq -r '.[].promiscuity') ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: promisc=$(ip -j -d link show dev "$dev" | jq -r '.[].promiscuity') For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2145 -- Argument mixes string and array. ... https://www.shellcheck.net/wiki/SC2027 -- The surrounding quotes actually u... Checking tools/testing/selftests/net/forwarding/mirror_gre_bridge_1q_lag.sh - ff65a89453ece274b95f813f7a38af510b609241bdbb4e7989330f864d2451dd In mirror_gre_bridge_1q_lag.sh line 58: require_command $ARPING ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$ARPING" In mirror_gre_bridge_1q_lag.sh line 67: vrf_create $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_create "$vrf_name" In mirror_gre_bridge_1q_lag.sh line 68: ip link set dev $vrf_name up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" up In mirror_gre_bridge_1q_lag.sh line 69: vlan_create $if_name $vid $vrf_name "${ips[@]}" ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$if_name" "$vid" "$vrf_name" "${ips[@]}" In mirror_gre_bridge_1q_lag.sh line 78: vlan_destroy $if_name $vid ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$if_name" "$vid" In mirror_gre_bridge_1q_lag.sh line 79: ip link set dev $vrf_name down ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$vrf_name" down In mirror_gre_bridge_1q_lag.sh line 80: vrf_destroy $vrf_name ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vrf_destroy "$vrf_name" In mirror_gre_bridge_1q_lag.sh line 85: vlan_host_create $h1 333 vrf-h1 192.0.2.1/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_create "$h1" 333 vrf-h1 192.0.2.1/28 In mirror_gre_bridge_1q_lag.sh line 92: vlan_host_destroy $h1 333 vrf-h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_destroy "$h1" 333 vrf-h1 In mirror_gre_bridge_1q_lag.sh line 97: vlan_host_create $h1 555 vrf-h2 192.0.2.18/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_create "$h1" 555 vrf-h2 192.0.2.18/28 In mirror_gre_bridge_1q_lag.sh line 104: vlan_host_destroy $h1 555 vrf-h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_host_destroy "$h1" 555 vrf-h2 In mirror_gre_bridge_1q_lag.sh line 109: simple_if_init $h3 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h3" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 110: tc qdisc add dev $h3 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$h3" clsact In mirror_gre_bridge_1q_lag.sh line 115: tc qdisc del dev $h3 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$h3" clsact In mirror_gre_bridge_1q_lag.sh line 116: simple_if_fini $h3 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h3" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 121: simple_if_init $h4 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h4" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 122: tc qdisc add dev $h4 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$h4" clsact In mirror_gre_bridge_1q_lag.sh line 127: tc qdisc del dev $h4 clsact ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$h4" clsact In mirror_gre_bridge_1q_lag.sh line 128: simple_if_fini $h4 192.0.2.130/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h4" 192.0.2.130/28 In mirror_gre_bridge_1q_lag.sh line 133: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In mirror_gre_bridge_1q_lag.sh line 134: tc qdisc add dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc add dev "$swp1" clsact In mirror_gre_bridge_1q_lag.sh line 135: vlan_create $swp1 333 "" 192.0.2.2/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$swp1" 333 "" 192.0.2.2/28 In mirror_gre_bridge_1q_lag.sh line 136: vlan_create $swp1 555 "" 192.0.2.17/28 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$swp1" 555 "" 192.0.2.17/28 In mirror_gre_bridge_1q_lag.sh line 141: ip link set dev $swp3 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" up In mirror_gre_bridge_1q_lag.sh line 142: ip link set dev $swp4 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp4" up In mirror_gre_bridge_1q_lag.sh line 144: ip link add name br1 address $(mac_get $swp3) \ ^--------------^ SC2046 (warning): Quote this to prevent word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link add name br1 address $(mac_get "$swp3") \ In mirror_gre_bridge_1q_lag.sh line 147: team_create lag loadbalance $swp3 $swp4 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: team_create lag loadbalance "$swp3" "$swp4" In mirror_gre_bridge_1q_lag.sh line 165: ip link set dev $swp4 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp4" down In mirror_gre_bridge_1q_lag.sh line 166: ip link set dev $swp3 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" down In mirror_gre_bridge_1q_lag.sh line 170: vlan_destroy $swp1 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$swp1" 555 In mirror_gre_bridge_1q_lag.sh line 171: vlan_destroy $swp1 333 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$swp1" 333 In mirror_gre_bridge_1q_lag.sh line 172: tc qdisc del dev $swp1 clsact ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc qdisc del dev "$swp1" clsact In mirror_gre_bridge_1q_lag.sh line 173: ip link set dev $swp1 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" down In mirror_gre_bridge_1q_lag.sh line 189: ip link set dev $h1 up ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$h1" up In mirror_gre_bridge_1q_lag.sh line 198: trap_install $h3 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_install "$h3" ingress In mirror_gre_bridge_1q_lag.sh line 199: trap_install $h4 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_install "$h4" ingress In mirror_gre_bridge_1q_lag.sh line 206: trap_uninstall $h4 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_uninstall "$h4" ingress In mirror_gre_bridge_1q_lag.sh line 207: trap_uninstall $h3 ingress ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: trap_uninstall "$h3" ingress In mirror_gre_bridge_1q_lag.sh line 216: ip link set dev $h1 down ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$h1" down In mirror_gre_bridge_1q_lag.sh line 230: tc filter add dev $swp1 ingress pref 999 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter add dev "$swp1" ingress pref 999 \ In mirror_gre_bridge_1q_lag.sh line 233: mirror_install $swp1 ingress gt4 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress gt4 \ In mirror_gre_bridge_1q_lag.sh line 237: ip link set dev $down_dev down ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$down_dev" down In mirror_gre_bridge_1q_lag.sh line 239: setup_wait_dev $up_dev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "$up_dev" In mirror_gre_bridge_1q_lag.sh line 240: setup_wait_dev $host_dev ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: setup_wait_dev "$host_dev" In mirror_gre_bridge_1q_lag.sh line 243: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 ">= 10" ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$host_dev" 1 ">= 10" In mirror_gre_bridge_1q_lag.sh line 246: ip link set dev $up_dev down ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$up_dev" down In mirror_gre_bridge_1q_lag.sh line 248: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h3 1 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$h3" 1 0 In mirror_gre_bridge_1q_lag.sh line 249: mirror_test vrf-h1 192.0.2.1 192.0.2.18 $h4 1 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_test vrf-h1 192.0.2.1 192.0.2.18 "$h4" 1 0 In mirror_gre_bridge_1q_lag.sh line 251: ip link set dev $up_dev up ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$up_dev" up In mirror_gre_bridge_1q_lag.sh line 252: ip link set dev $down_dev up ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$down_dev" up In mirror_gre_bridge_1q_lag.sh line 253: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_bridge_1q_lag.sh line 254: tc filter del dev $swp1 ingress pref 999 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tc filter del dev "$swp1" ingress pref 999 In mirror_gre_bridge_1q_lag.sh line 261: test_lag_slave $h3 $swp3 $swp4 "mirror to gretap: LAG first slave" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test_lag_slave "$h3" "$swp3" "$swp4" "mirror to gretap: LAG first slave" In mirror_gre_bridge_1q_lag.sh line 266: test_lag_slave $h4 $swp4 $swp3 "mirror to gretap: LAG second slave" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: test_lag_slave "$h4" "$swp4" "$swp3" "mirror to gretap: LAG second slave" In mirror_gre_bridge_1q_lag.sh line 276: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... Checking tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh - 042764c1c0eeacf1ebf9e1e8dd960a9f50b4d0b2f9ec89cb7415be653bf4b7d3 In mirror_gre_vlan_bridge_1q.sh line 64: require_command $ARPING ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: require_command "$ARPING" In mirror_gre_vlan_bridge_1q.sh line 71: ip addr $add_del dev $dev 192.0.2.130/28 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr "$add_del" dev "$dev" 192.0.2.130/28 In mirror_gre_vlan_bridge_1q.sh line 72: ip addr $add_del dev $dev 2001:db8:2::2/64 ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip addr "$add_del" dev "$dev" 2001:db8:2::2/64 In mirror_gre_vlan_bridge_1q.sh line 90: sysctl_set net.ipv4.conf.$h3.rp_filter 0 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl_set net.ipv4.conf."$h3".rp_filter 0 In mirror_gre_vlan_bridge_1q.sh line 100: vlan_create $h3 555 v$h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h3" 555 v"$h3" In mirror_gre_vlan_bridge_1q.sh line 101: h3_addr_add_del add $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 103: ip link set dev $swp3 master br1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" master br1 In mirror_gre_vlan_bridge_1q.sh line 104: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 105: bridge vlan add dev $swp2 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp2" vid 555 In mirror_gre_vlan_bridge_1q.sh line 112: ip link set dev $swp2 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" nomaster In mirror_gre_vlan_bridge_1q.sh line 113: ip link set dev $swp3 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp3" nomaster In mirror_gre_vlan_bridge_1q.sh line 115: h3_addr_add_del del $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 116: vlan_destroy $h3 555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h3" 555 In mirror_gre_vlan_bridge_1q.sh line 122: sysctl_restore net.ipv4.conf.$h3.rp_filter ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: sysctl_restore net.ipv4.conf."$h3".rp_filter In mirror_gre_vlan_bridge_1q.sh line 132: full_test_span_gre_dir_vlan $tundev ingress "$vlan_match" 8 0 "$what" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_dir_vlan "$tundev" ingress "$vlan_match" 8 0 "$what" In mirror_gre_vlan_bridge_1q.sh line 133: full_test_span_gre_dir_vlan $tundev egress "$vlan_match" 0 8 "$what" ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_dir_vlan "$tundev" egress "$vlan_match" 0 8 "$what" In mirror_gre_vlan_bridge_1q.sh line 156: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 157: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 162: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 166: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 168: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 190: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 191: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 193: bridge vlan del dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan del dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 195: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 197: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 201: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 203: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 226: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 228: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 229: quick_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 231: h3_addr_add_del del $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 232: bridge vlan add dev $swp3 vid 555 pvid untagged ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 pvid untagged In mirror_gre_vlan_bridge_1q.sh line 233: h3_addr_add_del add $h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3" In mirror_gre_vlan_bridge_1q.sh line 236: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 237: fail_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 239: h3_addr_add_del del $h3 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del del "$h3" In mirror_gre_vlan_bridge_1q.sh line 240: bridge vlan add dev $swp3 vid 555 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add dev "$swp3" vid 555 In mirror_gre_vlan_bridge_1q.sh line 241: h3_addr_add_del add $h3.555 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: h3_addr_add_del add "$h3".555 In mirror_gre_vlan_bridge_1q.sh line 244: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 245: quick_test_span_vlan_dir $h3 555 "$ul_proto" ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_vlan_dir "$h3" 555 "$ul_proto" In mirror_gre_vlan_bridge_1q.sh line 247: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 266: local h3mac=$(mac_get $h3) ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local h3mac=$(mac_get "$h3") In mirror_gre_vlan_bridge_1q.sh line 270: mirror_install $swp1 ingress $tundev "matchall" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_install "$swp1" ingress "$tundev" "matchall" In mirror_gre_vlan_bridge_1q.sh line 271: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 274: bridge fdb del dev $swp3 $h3mac vlan 555 master 2>/dev/null ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb del dev "$swp3" "$h3mac" vlan 555 master 2>/dev/null In mirror_gre_vlan_bridge_1q.sh line 275: bridge fdb add dev $swp2 $h3mac vlan 555 master static ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb add dev "$swp2" "$h3mac" vlan 555 master static In mirror_gre_vlan_bridge_1q.sh line 277: fail_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: fail_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 279: if ! bridge fdb sh dev $swp2 vlan 555 master \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! bridge fdb sh dev "$swp2" vlan 555 master \ In mirror_gre_vlan_bridge_1q.sh line 280: | grep -q $h3mac; then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: | grep -q "$h3mac"; then In mirror_gre_vlan_bridge_1q.sh line 291: bridge fdb del dev $swp2 $h3mac vlan 555 master 2>/dev/null ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge fdb del dev "$swp2" "$h3mac" vlan 555 master 2>/dev/null In mirror_gre_vlan_bridge_1q.sh line 295: quick_test_span_gre_dir $tundev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: quick_test_span_gre_dir "$tundev" In mirror_gre_vlan_bridge_1q.sh line 297: mirror_uninstall $swp1 ingress ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mirror_uninstall "$swp1" ingress In mirror_gre_vlan_bridge_1q.sh line 314: full_test_span_gre_stp gt4 $swp3 "mirror to gretap" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_stp gt4 "$swp3" "mirror to gretap" In mirror_gre_vlan_bridge_1q.sh line 319: full_test_span_gre_stp gt6 $swp3 "mirror to ip6gretap" ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: full_test_span_gre_stp gt6 "$swp3" "mirror to ip6gretap" In mirror_gre_vlan_bridge_1q.sh line 329: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...