tolower() a été renommé strlower()

This commit is contained in:
Jephté Clain 2014-10-06 11:52:58 +04:00
parent e8481054f4
commit 220ba12950
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
003006000 003006001

View File

@ -2549,7 +2549,7 @@ function __po_process_options() {
function __genparse_shortopt() { function __genparse_shortopt() {
local LC_COLLATE=C local LC_COLLATE=C
local shortopt="${1//[^A-Z]}" local shortopt="${1//[^A-Z]}"
shortopt="$(tolower "${shortopt:0:1}")" shortopt="$(strlower "${shortopt:0:1}")"
[ -n "$shortopt" ] && echo "$shortopt" [ -n "$shortopt" ] && echo "$shortopt"
} }
HELP_DESC= HELP_DESC=
@ -2616,7 +2616,7 @@ function genparse() {
if [[ "$var" == *=* ]]; then if [[ "$var" == *=* ]]; then
splitvar "$var" name value splitvar "$var" name value
shortopt="$(__genparse_shortopt "$name")" shortopt="$(__genparse_shortopt "$name")"
option="$(tolower "$name")" option="$(strlower "$name")"
name="${option//-/_}" name="${option//-/_}"
array_add names "$name" array_add names "$name"
array_add descs "${shortopt:+-$shortopt, }--$option VALUE" array_add descs "${shortopt:+-$shortopt, }--$option VALUE"
@ -2625,7 +2625,7 @@ function genparse() {
else else
name="$var" name="$var"
shortopt="$(__genparse_shortopt "$name")" shortopt="$(__genparse_shortopt "$name")"
option="$(tolower "$name")" option="$(strlower "$name")"
name="${option//-/_}" name="${option//-/_}"
array_add names "$name" array_add names "$name"
array_add descs "${shortopt:+-$shortopt, }--$option" array_add descs "${shortopt:+-$shortopt, }--$option"