Add both the short and long versions of the --sort-versions flag to the banned commands

Related to #755
This commit is contained in:
Trevor Brown 2021-02-10 14:45:02 -05:00 committed by GitHub
parent 55f43e3546
commit dd20022830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,9 @@ banned_commands=(
column column
# does not work on alpine and should be grep -i either way # does not work on alpine and should be grep -i either way
"grep.* -y" "grep.* -y"
# sort -V isn't supported everywhere # sort --sort-version isn't supported everywhere
"sort.*-V" "sort.*-V"
"sort.*--sort-versions"
# echo isn't consistent across operating systems, and sometimes output can # echo isn't consistent across operating systems, and sometimes output can
# be confused with echo flags. printf does everything echo does and more. # be confused with echo flags. printf does everything echo does and more.
echo echo