This is a purely aesthetic question, as I have a working command now, but I'd like to run wc -m against each element in my clients array without an explicit loop or running a subshell/child shell process. Bash is v5.0.18 running on macOS.
clients=(one two three)
printf '%s\n' "${clients[@]}" | xargs -I{} bash -c 'echo -n {} | wc -m' | sort -nr | head -1
clientscontain unbalanced quotes, parentheses or any other shell control characters.