@@ -1507,8 +1507,8 @@ ShellBot.init()
15071507
15081508 __button=$__button [$__line ]
15091509
1510- printf -v $__button " ${! __button# [} "
1511- printf -v $__button " ${! __button% ]} "
1510+ printf -v $__button ' %s ' " ${! __button# [} "
1511+ printf -v $__button ' %s ' " ${! __button% ]} "
15121512
15131513 printf -v $__button ' %s {"text": "%s", "callback_data": "%s", "url": "%s", "switch_inline_query": "%s", "switch_inline_query_current_chat": "%s"}' \
15141514 " ${! __button: +${! __button} ,} " \
@@ -1518,7 +1518,7 @@ ShellBot.init()
15181518 " ${__switch_inline_query} " \
15191519 " ${__switch_inline_query_current_chat} "
15201520
1521- printf -v $__button " [${! __button} ]"
1521+ printf -v $__button ' %s ' " [${! __button} ]"
15221522
15231523 return $?
15241524 }
@@ -1556,7 +1556,7 @@ ShellBot.init()
15561556 __button=$__button [@]
15571557
15581558 printf -v __keyboard ' %s,' " ${! __button} "
1559- printf -v __keyboard " ${__keyboard% ,} "
1559+ printf -v __keyboard ' %s ' " ${__keyboard% ,} "
15601560
15611561 # Constroi a estrutura dos objetos + array keyboard, define os valores e salva as configurações.
15621562 # Por padrão todos os valores são 'false' até que seja definido.
@@ -1694,7 +1694,7 @@ ShellBot.init()
16941694 __button=$__button [@]
16951695
16961696 printf -v __keyboard ' %s,' " ${! __button} "
1697- printf -v __keyboard " ${__keyboard% ,} "
1697+ printf -v __keyboard ' %s ' " ${__keyboard% ,} "
16981698
16991699 # Constroi a estrutura dos objetos + array keyboard, define os valores e salva as configurações.
17001700 # Por padrão todos os valores são 'false' até que seja definido.
@@ -1768,8 +1768,8 @@ ShellBot.init()
17681768
17691769 __button=$__button [$__line ]
17701770
1771- printf -v $__button " ${! __button# [} "
1772- printf -v $__button " ${! __button% ]} "
1771+ printf -v $__button ' %s ' " ${! __button# [} "
1772+ printf -v $__button ' %s ' " ${! __button% ]} "
17731773
17741774 printf -v $__button ' %s {"text": "%s", "request_contact": %s, "request_location": %s, "request_poll": %s}' \
17751775 " ${! __button: +${! __button} ,} " \
@@ -1778,7 +1778,7 @@ ShellBot.init()
17781778 " ${__location:- false} " \
17791779 " ${__request_poll:- \"\" } "
17801780
1781- printf -v $__button " [${! __button} ]"
1781+ printf -v $__button ' %s ' " [${! __button} ]"
17821782
17831783 return $?
17841784 }
@@ -5209,15 +5209,15 @@ _EOF
52095209 [[ $__command ]] || MessageError API " $_ERR_PARAM_REQUIRED_ " " [-c, --command]"
52105210 [[ $__description ]] || MessageError API " $_ERR_PARAM_REQUIRED_ " " [-d, --description]"
52115211
5212- printf -v $__list " ${! __list# [} "
5213- printf -v $__list " ${! __list% ]} "
5212+ printf -v $__list ' %s ' " ${! __list# [} "
5213+ printf -v $__list ' %s ' " ${! __list% ]} "
52145214
52155215 printf -v $__list ' %s{"command": "%s", "description": "%s"}' \
52165216 " ${! __list: +${! __list} ,} " \
52175217 " $__command " \
52185218 " $__description "
52195219
5220- printf -v $__list " [${! __list} ]"
5220+ printf -v $__list ' %s ' " [${! __list} ]"
52215221
52225222 return $?
52235223 }
0 commit comments