-
Notifications
You must be signed in to change notification settings - Fork 1
Re-review wc command #70
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
Closed
Closed
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ec0373c
Remove wc builtin implementation
AlexandreYang 4b0ac18
empty
AlexandreYang 9d41e52
Revert "Remove wc builtin implementation"
AlexandreYang 3c9cb2c
Remove wc tests, registration, and documentation references
AlexandreYang e5a2b4a
Merge branch 'alex/review_wc2_base' into alex/review_wc2
AlexandreYang 7adbe80
Revert "Remove wc tests, registration, and documentation references"
AlexandreYang b9219b4
[iter 1] Fix wc bash compatibility: \v/\f display width, control char…
AlexandreYang 40f2efc
[iter 2] Add skip_assert_against_bash for files0_from_rejected scenario
AlexandreYang f0741a5
[iter 5] Fix stdin min-width padding to only apply with 2+ output col…
AlexandreYang f0f6872
[iter 6] Fix \r to save maxLineLen before resetting, add regression test
AlexandreYang d7e57ff
Merge branch 'main' into alex/review_wc2_base
AlexandreYang 6ebca03
Merge branch 'alex/review_wc2_base' into alex/review_wc2
AlexandreYang bca4408
[iter 1] Fix pipe_to_wc.yaml expected stdout to match unpadded wc -l …
AlexandreYang 4fc9e08
Merge branch 'main' into alex/review_wc2
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ input: | |
| script: |+ | ||
| ls | wc -l | ||
| expect: | ||
| stdout: |2+ | ||
| 3 | ||
| stdout: "3\n" | ||
| stderr: "" | ||
| exit_code: 0 | ||
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.
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.
The new
hasStdin && nCols >= 2guard drops GNU-compatible padding for cases that still require the 7-character stdin field width when only one count column is selected but multiple inputs are printed. For example, with GNUwc,printf 'a\n' | wc -l - fileproduces padded counts (" 1 -"," 1 file"," 2 total"), but this branch leaveswidthat 1 and emits unpadded output. This is a user-visible formatting regression for mixed stdin+file invocations in single-column mode.Useful? React with 👍 / 👎.