head: head /proc/self/men file does not show content of file
Open
Nobody has claimed this yet.
U - head
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
$ gnu-9a3479f1e/head /proc/self/mem a
==> /proc/self/mem <==
head: error reading '/proc/self/mem': Input/output error
==> a <==
a
$ uutils-head /proc/self/mem a
==> /proc/self/mem <==
head: error writing 'standard output': Input/output error (os error 5)
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.
Research direction
Start by reproducing the reported command with uutils-head and GNU head against /proc/self/mem and a. Trace the head command's handling of read and write errors, then inspect existing head tests for a suitable regression case. Done means the behavior and error handling match the intended GNU-compatible result while still processing the second file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100