[Bug 11721] New: ash subshell vs. arithmetic bracket parsing issue
bugzilla at busybox.net
bugzilla at busybox.net
Sun Mar 10 20:19:02 UTC 2019
https://bugs.busybox.net/show_bug.cgi?id=11721
Bug ID: 11721
Summary: ash subshell vs. arithmetic bracket parsing issue
Product: Busybox
Version: 1.30.x
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
Assignee: unassigned at busybox.net
Reporter: osm0sis at outlook.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Nesting brackets as follows in ash does not follow the standard in bash, mksh
or even busybox's hush:
this=$((blah || blarg) 2>/dev/null);
To better test remove the redirect for the following command (noting the space
to preserve the nesting):
this=$((blah || blarg) );
On any shell I've tested but ash this correctly gives error 127 for the
commands grouped not being able to run. ash instead incorrectly interprets it
as an arithmetic statement, presumably due to the $((, despite it not closing
with )), and will hang awaiting )) or in a script will error out it missing the
)).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list