From 0ba4aff70587cd0d719376d2514d4f28860ff673 Mon Sep 17 00:00:00 2001 From: xxhhlk Date: Thu, 5 Feb 2026 04:45:36 +0800 Subject: [PATCH] Fix getopts option parsing in tcpping fix -6 and -q option --- tcpping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpping b/tcpping index d783c97..5a869e5 100755 --- a/tcpping +++ b/tcpping @@ -341,7 +341,7 @@ _quit() { exit } -while getopts Zdhzq46:w:cr:nNFSAEi:f:l:m:p:s:x:CM:o opt ; do +while getopts Zdhzq:46w:cr:nNFSAEi:f:l:m:p:s:x:CM:o opt ; do case "$opt" in d|c|C) eval $opt="yes" ;; q|x) eval $opt="$OPTARG" ;;