-
Notifications
You must be signed in to change notification settings - Fork 1
Re-review wc #73
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
Re-review wc #73
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d35e984
remove wc
AlexandreYang 63e05a7
Revert "remove wc"
AlexandreYang 5d8527e
[iter 1] Fix \v and \f display width for wc -L, rename shadowed variable
AlexandreYang d711e5a
[iter 2] Fix control characters incorrectly counted as word characters
AlexandreYang 92849a4
[iter 3] Fix \r/\f max preservation and stdin min width in wc
AlexandreYang 78af0ea
[iter 4] Add -L flag to wc documentation in SHELL_FEATURES.md
AlexandreYang 101d222
[iter 1] Fix -h flag, files0_from skip, and directory count line
AlexandreYang 4436c58
[iter 1] Add missing windows build tag to wc_isdir_windows.go
AlexandreYang 5e27085
[iter 1] Fix empty filename handling in wc and add syscall to allowlist
AlexandreYang 3f233ff
[iter 1] Match GNU wc error message for empty filename argument
AlexandreYang 64863db
[iter 1] Remove unused os.ErrNotExist and os.PathError from builtinAl…
AlexandreYang 9e648d3
[iter 2] Fix directory zero-count width and add \v word-separator tests
AlexandreYang a3fe205
[iter 4] Fix width-7 padding for non-regular input with explicit mult…
AlexandreYang 35d90c3
Merge origin/main into alex/review_wc3
AlexandreYang d33214b
[iter 1] Fix width-7 padding for single-column multi-file with non-re…
AlexandreYang cd23817
[iter 1] Fix CI: move skip_assert_against_bash to top level and remov…
AlexandreYang b1666fd
[iter 2] Fix P3 findings: alphabetical grouping and magic number
AlexandreYang 89747ea
[iter 3] Fix wc -w miscounting unassigned Unicode codepoints (Cn)
AlexandreYang a485936
[iter 4] Add skip_assert_against_bash for empty filename wc test
AlexandreYang 680a742
[iter 5] Fix fuzz corpus type mismatch in FuzzWcDifferentialWords
AlexandreYang 9232dc9
[iter 6] Fix wc -w counting unassigned Unicode code points as words
AlexandreYang 38cc6ec
[iter 7] Fix wc -w to count non-graphic characters as word constituents
AlexandreYang 104f04a
[iter 8] Remove unused unicode.IsGraphic from allowed symbols list
AlexandreYang 67de037
[iter 9] Fix wc -w to not count unassigned codepoints as words
AlexandreYang 18bc6b1
[iter 9] Add unicode.IsGraphic and unicode.Co back to allowed symbols
AlexandreYang 00556df
[iter 10] Fix wc -w by matching glibc iswprint() exactly for word bou…
AlexandreYang 978f0be
Merge remote-tracking branch 'origin/main' into alex/review_wc3
thieman c379b92
[iter 10] Fix wc -w with Unicode 15.1 supplement table for word bound…
AlexandreYang 8e957c9
[iter 10] Add Cf (format characters) to wc -w word character check
AlexandreYang 761faba
[iter 1] Address PR review comments: numCols helper, Cn width fix, sk…
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
2 changes: 2 additions & 0 deletions
2
interp/builtins/tests/wc/testdata/fuzz/FuzzWcDifferentialWords/cd24dde99d3a6e0f
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| go test fuzz v1 | ||
| []byte("\xe2\xbf\xbf") |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Unless explicitly stated otherwise all files in this repository are licensed | ||
| // under the Apache License Version 2.0. | ||
| // This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
| // Copyright 2026-present Datadog, Inc. | ||
|
|
||
| //go:build !windows | ||
|
|
||
| package wc | ||
|
|
||
| import ( | ||
| "errors" | ||
| "syscall" | ||
| ) | ||
|
|
||
| // isErrIsDir reports whether err wraps a "is a directory" error. | ||
| func isErrIsDir(err error) bool { | ||
| return errors.Is(err, syscall.EISDIR) | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.