hush: BUG in varexp2 when doing a=${a:+$a }a

Aleksander Mazur deweloper at wp.pl
Sun Jun 4 11:22:27 UTC 2023


Hi,

hush aborts when doing mentioned parameter substitution.
(Fortunately it works fine when double-quoted.)

$ ./hush


BusyBox v1.37.0.git (2023-06-04 12:42:18 CEST) hush - the humble shell
Enter 'help' for a list of built-in commands.

/tmp $ a=${a:+$a }a
/tmp $ echo $a
a
/tmp $ a=${a:+$a }a
hush: BUG in varexp2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hush-vars-var_subst.tests.fail
Type: application/octet-stream
Size: 159 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230604/85eca9d3/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: var_subst.right
Type: application/octet-stream
Size: 10 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230604/85eca9d3/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: var_subst.tests
Type: application/octet-stream
Size: 46 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230604/85eca9d3/attachment-0005.obj>


More information about the busybox mailing list