Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC2127: POSIX.1-2024 now allows ;& in case (fallthrough) #3166

Open
e-kwsm opened this issue Mar 23, 2025 · 0 comments
Open

SC2127: POSIX.1-2024 now allows ;& in case (fallthrough) #3166

e-kwsm opened this issue Mar 23, 2025 · 0 comments

Comments

@e-kwsm
Copy link
Contributor

e-kwsm commented Mar 23, 2025

https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xcu_chap01.html#tag_23_02_09_19

Instead, the standard now requires a feature first added in KornShell that using ";&" instead of ";;" as a terminator causes the exact opposite behavior—the flow of control continues with the next compound-list.

Some implementations of the shell also allow ";;&" as a terminator which falls through to the next matching pattern (regardless of the choice of terminator in any intermediate non-matching clauses), in contrast to ";&" falling through to the next clause (regardless of the pattern guarding that clause). This is an allowed extension, but is not required by the standard at this time.

Note: dash b3e38adf6718801e7f06267b438c45caec9523bb does not support ;& yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant