to_upper() idiomatic alternative

This commit is contained in:
SkyperTHC 2023-06-15 10:57:51 +01:00
parent ac164c6b4e
commit 5f17519cfe
No known key found for this signature in database
GPG Key ID: A9BD386DF9113CD6
1 changed files with 1 additions and 0 deletions

View File

@ -2193,6 +2193,7 @@ to_upper() {
ptr=${ptr^^}
}
# Alternative: to_upper() { eval "${1}"="${!1^^}";}
foo="bar"
to_upper foo