diff options
author | Ron Yorston <rmy@pobox.com> | 2019-04-18 09:49:13 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-19 13:21:34 +0200 |
commit | d1a2fa2a4e013960bf56dfef8a71ed2d08fc756b (patch) | |
tree | 6d47b357fbc99a10fa026b969b8e53200b69681e /procps/pidof.c | |
parent | 48645b83502a5add5429b6cbb19cf3a083f1adf4 (diff) | |
download | busybox-d1a2fa2a4e013960bf56dfef8a71ed2d08fc756b.tar.gz |
ash: catch error in arithmetic expansion in PS1
Setting PS1 to:
PS1='$((123+))'
causes the shell to enter an infinite error loop:
sh: arithmetic syntax error
Catch any exception raised by expandarg() in expandstr() and allow
processing to continue.
function old new delta
expandstr 262 344 +82
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 82/0) Total: 82 bytes
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/pidof.c')
0 files changed, 0 insertions, 0 deletions