hush: set default PS1/2 only if we interactive
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 May 2019 13:37:50 +0000 (15:37 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 May 2019 13:39:32 +0000 (15:39 +0200)
commit0c3601936915d3d625683388c62c561de96a47da
treeb427f860b4b43e2214a031589ecffa188a946ac9
parent08fb82c80cf06b776822b8388c3863e7c5565a74
hush: set default PS1/2 only if we interactive

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

function                                             old     new   delta
hush_main                                           1070    1075      +5

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