[Bug 16189] New: Ash `case` statments ending in ;& does not conform to POSIX ,

bugzilla at busybox.net bugzilla at busybox.net
Wed Sep 18 07:41:20 UTC 2024


https://bugs.busybox.net/show_bug.cgi?id=16189

            Bug ID: 16189
           Summary: Ash `case` statments ending in ;& does not conform to
                    POSIX ,
           Product: Busybox
           Version: 1.36.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: ricercar at tuta.io
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

To comply with POSIX, the following code should output both "foo" and "bar", as
it does in eg bash, instead it gives error: syntax error: unexpected "&"

case foo in foo ) echo foo;& bar ) echo bar;;esac

Standard is defined here : 

https://pubs.opengroup.org/onlinepubs/9799919799//utilities/V3_chap02.html#tag_19_09_04_05
:

>  If the case statement clause is terminated by ";&", then the compound-list (if any) of each subsequent clause shall be executed, in order, until either a clause terminated by ";;" is reached and its compound-list (if any) executed or there are no further clauses in the case statement.
P

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list