We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3bfda commit a1ea2a5Copy full SHA for a1ea2a5
acme.sh
@@ -436,14 +436,28 @@ _secure_debug3() {
436
fi
437
}
438
439
+__USE_TR_TAG=""
440
+if [ "$(echo "abc" | LANG=C tr a-z A-Z 2>/dev/null)" != "ABC" ] ; then
441
+ __USE_TR_TAG="1"
442
+fi
443
+export __USE_TR_TAG
444
+
445
_upper_case() {
446
+ if [ "$__USE_TR_TAG" ]; then
447
+ LANG=C tr '[:lower:]' '[:upper:]'
448
+ else
449
# shellcheck disable=SC2018,SC2019
- tr '[a-z]' '[A-Z]'
450
+ LANG=C tr '[a-z]' '[A-Z]'
451
+ fi
452
453
454
_lower_case() {
- # shellcheck disable=SC2018,SC2019
- tr '[A-Z]' '[a-z]'
455
456
+ LANG=C tr '[:upper:]' '[:lower:]'
457
458
+ # shellcheck disable=SC2018,SC2019
459
+ LANG=C tr '[A-Z]' '[a-z]'
460
461
462
463
_startswith() {
0 commit comments