xargs: Error: Command could not be run: The filename or extension is too long. (os error 206)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- cli, operating-systems
Research direction
Start by reproducing the reported Windows command with find, xargs -0, and grep, comparing the default invocation with xargs -0 -n 1. Investigate how xargs determines the command-line limit and batches input on Windows. Done means the command no longer fails with OS error 206 while preserving correct batching and matching behavior.
Written by the indexing model from the issue text.
Description
The command I ran:
find src -name "*.json" -print0 | xargs -0 grep "centoscript-transform-named-subexpression" | cat
Apparently xargs doesn't know the real command line length limit
Trying to workaround resisted; I finally burned CPU by running
find src -name "*.json" -print0 | xargs -0 -n 1 grep "centoscript-transform-named-subexpression" | cat
- Dominant language
- Rust
- Stars
- 5.2k
- Forks
- 107
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/coreutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
sleep has 9MB Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
grep not work Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
E-needs-discussion
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in microsoft/coreutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
todo:ticket
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
taikoxyz/taiko-mono#22168 · 1 comment ·