hush: handle LINENO the same way as RANDOM: variable is "ephemeral"
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 May 2019 13:26:05 +0000 (15:26 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 May 2019 13:39:32 +0000 (15:39 +0200)
commit08fb82c80cf06b776822b8388c3863e7c5565a74
tree89d311bb3eea705b8c35afe16bb94a59902fe682
parentee9e5f92b659081a9d889ef16f91a070b8c36024
hush: handle LINENO the same way as RANDOM: variable is "ephemeral"

"env - hush" invocation (that is, with empty environment)
should not show LINENO in "set" output.

function                                             old     new   delta
get_local_var_value                                  263     294     +31
hush_main                                           1105    1070     -35
handle_changed_special_names                          79      38     -41
run_pipe                                            1834    1765     -69
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 31/-145)          Total: -114 bytes

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