hush: fix "unset PS1/PS2", and put them into initial variable set
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 6 Apr 2018 15:58:21 +0000 (17:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 6 Apr 2018 15:58:21 +0000 (17:58 +0200)
commitf5018dac21df54647d0982ed4bebd0286d77cc56
tree1ee25cd13897d36d192281f7f4d990529c98410a
parentd1d6d9c5d8022bcd8f2e7fbd470d293f73adae58
hush: fix "unset PS1/PS2", and put them into initial variable set

"unset PS1/PS2" causes prompts to be empty strings

function                                             old     new   delta
hush_main                                           1031    1089     +58
goto_new_line                                         27      33      +6
fgetc_interactive                                    244     245      +1
unset_local_var                                      155     149      -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 65/-6)              Total: 59 bytes

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