From bce32ae78c091b80f6b2ea294d92d59d00bb0b0f Mon Sep 17 00:00:00 2001 From: David Cooper Date: Sun, 13 Sep 2026 14:52:31 -0700 Subject: [PATCH] Fix Shellcheck SC2021 This commit fixes Shellecheck issue SC2021 by not enclosing list of characters in "[...]' for the 'tr' command. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 21fec8b..6e67947 100755 --- a/testssl.sh +++ b/testssl.sh @@ -23429,7 +23429,7 @@ determine_rdns() { # circumstances (see #1506) can show up here. The blacklist is taken from RFC 1912 ("Allowable characters in a # label for a host name are only ASCII, letters, digits, and the `-' character") while read -r line; do - line="$(tr -dc '[a-zA-Z0-9-_.]' <<< "$line")" + line="$(tr -dc 'a-zA-Z0-9-_.' <<< "$line")" [[ -z "$rdns" ]] && rdns="$line" || rdns="$rdns $line" done <<< "$rDNS" rDNS="$rdns"