We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test.sh:
test.sh
case x in (x) echo Yep;; esac
invocation: toybox sh test.sh
toybox sh test.sh
version: 0.8.7
expected: "Yep" on stdout; exit code 0
actual: sh: syntax error 'test.sh'@2: (
sh: syntax error 'test.sh'@2: (
POSIX-compatible shells must support the optional leading left-parenthesis for each individual pattern: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_05. In practice this seems to hold true too; the posixy shells I've tried (mksh ksh zsh dash bash posh busybox) all conform to the expected behaviour.
I first encountered this testing against the dash-rc script here, which is also where I encountered #354.
dash-rc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
test.sh
:invocation:
toybox sh test.sh
version: 0.8.7
expected: "Yep" on stdout; exit code 0
actual:
sh: syntax error 'test.sh'@2: (
POSIX-compatible shells must support the optional leading left-parenthesis for each individual pattern: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_05. In practice this seems to hold true too; the posixy shells I've tried (mksh ksh zsh dash bash posh busybox) all conform to the expected behaviour.
I first encountered this testing against the
dash-rc
script here, which is also where I encountered #354.The text was updated successfully, but these errors were encountered: