busybox/shell/hush_test/hush-vars/readonly0.right
Denys Vlasenko 07a95cfcab ash: disable check for "good" function name, bash does not check this
function                                             old     new   delta
.rodata                                           105304  105261     -43
parse_command                                       1696    1633     -63
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-106)           Total: -106 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2023-07-04 14:38:25 +02:00

20 lines
275 B
Text

readonly a='A'
readonly b='B'
Ok:0
hush: a=A: readonly variable
Fail:1
hush: a=A: readonly variable
Fail:1
hush: a=Z: readonly variable
Fail:1
hush: a=Z: readonly variable
b=B
^^^a is not exported
hush: a=Z: readonly variable
Visible:42
hush: a: readonly variable
Fail:1