zopencommunity / zopencommunity/bashport
vredir.tests : wrong error message when setting ulimit under active descriptor
Open
Nobody has claimed this yet.
bug
help wanted
- Dominant language
- Groovy
- Stars
- 12
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
When invoking the sequence:
unset v
exec {v}</dev/null
if (( v >= 10 )); then echo ok 1; else echo bad 1; fi
exec {v}<&-
ulimit -n 6
the output should be:
ok 1
failed to close file descriptor 11: bad file descriptor
but instead it is:
ok 1
bash: ulimit: open files: cannot modify limit: EDC5121I Invalid argument.
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 exact shell sequence from the issue and compare the expected output with the current ulimit error on this bash port. Trace the handling of the active file descriptor and the open-files limit; done means the sequence reports the expected failed-close message instead of the EDC5121I invalid-argument error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100