hush: implement "readonly" builtin
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Jul 2017 19:10:50 +0000 (21:10 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Jul 2017 19:10:50 +0000 (21:10 +0200)
commit1e660422b16510f8bcdb764d632bb1da391c4a35
tree8da138bec87d5b823b46797cb82ef28ca4e224c9
parent826360ff238eb23191950dd4c5051195eab9733a
hush: implement "readonly" builtin

function                                             old     new   delta
builtin_readonly                                       -      70     +70
helper_export_local                                  152     174     +22
bltins1                                              348     360     +12
expand_one_var                                      1620    1625      +5
builtin_export                                       168     173      +5
set_pwd_var                                           36      40      +4
set_local_var                                        410     414      +4
set_vars_and_save_old                                 85      88      +3
set_local_var_from_halves                             24      27      +3
run_pipe                                            1551    1554      +3
run_list                                            1046    1048      +2
builtin_type                                         116     114      -2
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 10/1 up/down: 133/-2)           Total: 131 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c