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