-
Notifications
You must be signed in to change notification settings - Fork 0
Re-review test/[ command #59
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3c53f7b
Remove test/[ builtin implementation and all associated tests
AlexandreYang ed598e9
Revert "Remove test/[ builtin implementation and all associated tests"
AlexandreYang 4915794
Merge branch 'main' into alex/verif_test_base
AlexandreYang 6b9cf17
Merge branch 'alex/verif_test_base' into alex/verif_test
AlexandreYang a1d513e
Address review comments: add comment and scenario tests
AlexandreYang 1fb0c36
Merge branch 'main' into alex/verif_test_base
AlexandreYang db98e44
Merge branch 'alex/verif_test_base' into alex/verif_test
AlexandreYang cb7e6f1
Address review comments: add docs, == test, rename misleading file
AlexandreYang fd16919
Add -a as unary file existence test (bash compat)
AlexandreYang 2ef9d7e
Merge branch 'main' into alex/verif_test_base
AlexandreYang 375e04d
Merge branch 'alex/verif_test_base' into alex/verif_test
AlexandreYang 3ab2bc6
Fix POSIX 3-arg disambiguation for -a/-o binary operators
AlexandreYang da2f69e
Fix bash compat: restrict ! and ( disambiguation to 3-arg, reject int…
AlexandreYang c763eab
Merge branch 'main' into alex/verif_test_base
AlexandreYang 634e008
Merge branch 'alex/verif_test_base' into alex/verif_test
AlexandreYang 3de1dbe
Fix POSIX 3-arg rule firing inside recursive parseAnd/parseOr calls
AlexandreYang 74c4407
Fix POSIX 3-arg disambiguation for nested ! subexpressions
AlexandreYang abae442
Fix subexprStart not saved/restored in parenthesized subexpressions
AlexandreYang d03b057
Fix POSIX 3-arg ( X ) disambiguation to match bash behavior
AlexandreYang 6e1f65f
Fix paren_three_arg.yaml to use correct scenario YAML schema
AlexandreYang a563049
Fix dangling ! after -a/-o, paren subexpr lookahead, document ==, ass…
AlexandreYang ea024ab
Merge origin/main into alex/verif_test
AlexandreYang bcb87b5
[iter 1] Remove stale math.MinInt64 from allowed symbols list
AlexandreYang b9e7628
[iter 1] Fix sandbox stat/lstat for null device on Windows
AlexandreYang 224612d
[iter 2] Fix indentation in allowed_symbols_test.go
AlexandreYang aaa639f
[iter 2] Update Windows reserved names test to expect NUL as existing
AlexandreYang ab24551
Merge branch 'main' into alex/verif_test_base
AlexandreYang f3ccffb
Merge branch 'alex/verif_test_base' into alex/verif_test
AlexandreYang 59af121
[iter 1] Match bash error message and remove skip_assert_against_bash
AlexandreYang 91c2773
[iter 2] Use exact stderr assertion in overflow.yaml
AlexandreYang fb172cf
[iter 4] Fix POSIX 4-arg paren disambiguation and lone ( in compound …
AlexandreYang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resetting
subexprStarton every!causes nested negations to incorrectly trigger the 3-argument-a/-orule on trailing tokens, so invalid expressions get accepted instead of returning syntax errors. For example,test ! ! -f -a =now returns a boolean result in rshell, while bash returns exit code 2 (too many arguments); this regression is introduced by treating each nested!as a fresh 3-token subexpression and then parsing-f -a =as a valid binary form.Useful? React with 👍 / 👎.