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.2Akudbd2tP and /tmp/tmp.qt3FTHip1Y Tree base: 28e5611a354b ("selftests: netfilter: conntrack_resize.sh: extend resize test") Now at: 34406b4cf517 ("selftests: netfilter: add conntrack clash resolution test case") ====== Checking before the patch ====== ====== Checking the tree with the patch ====== Checking tools/testing/selftests/net/netfilter/conntrack_clash.sh - a00afbba902107e2b49d2d5f043fa4339644dd960e3ac6bdd6eaf88e1106a0e3 In conntrack_clash.sh line 24: ip netns exec "$nsrouter" nft -f -</dev/null & ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip netns exec "$ns" socat UDP-RECVFROM:"$port",fork PIPE 2>/dev/null & In conntrack_clash.sh line 67: wait_local_port_listen "$ns" $port udp ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: wait_local_port_listen "$ns" "$port" udp In conntrack_clash.sh line 87: if ! ip netns exec "$ns" ping -q -c 1 $daddr > /dev/null;then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! ip netns exec "$ns" ping -q -c 1 "$daddr" > /dev/null;then In conntrack_clash.sh line 101: if ! ip netns exec "$ns" ./udpclash $daddr $dport;then ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if ! ip netns exec "$ns" ./udpclash "$daddr" "$dport";then In conntrack_clash.sh line 108: cre=$(conntrack -S | grep -v "clash_resolve=0" | wc -l) ^-----------------------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. In conntrack_clash.sh line 145: ip link add veth0 netns "$nsclient1" type veth peer name veth0 netns "$nsrouter" ^--------^ SC2154 (warning): nsclient1 is referenced but not assigned. In conntrack_clash.sh line 146: ip link add veth0 netns "$nsclient2" type veth peer name veth1 netns "$nsrouter" ^--------^ SC2154 (warning): nsclient2 is referenced but not assigned. For more information: https://www.shellcheck.net/wiki/SC2154 -- nsclient1 is referenced but not a... https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ... https://www.shellcheck.net/wiki/SC2126 -- Consider using 'grep -c' instead ...