Use tr '[:lower:]' '[:upper:]' to upcase

This commit is contained in:
cxgreat2014 2020-03-04 15:28:38 +08:00 committed by GitHub
parent e4237092ae
commit 30b80f3489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ _ali_url_encode(){
;;
#other hex
*)
printf '%%%s' "$_hex_code" | tr 'a-z' 'A-Z'
printf '%%%s' "$_hex_code" | tr '[:lower:]' '[:upper:]'
;;
esac
done