ls: gnu test case `capability` compatibility
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
This issue is for the Gnu test case capability.sh for util. This test case is used to check whether ls correctly colors the files with the Linux capabilities with ca color indicator.
Example
touch file1 file2
sudo setcap 'cap_net_bind_service=ep' file1
LS_COLORS="ca=30;41" ls --color=always
should produce output like this
^[[0m^[[30;41mfile1^[[0m <-------------- correctly colors file with the capabilities set
file2
but uu_ls produce output like this
file1 <-------------- no color for the same file
file2
This test also checks that, whether the ex indicator is given or not, the ca indicator should be used to color the file with the capabilities.
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 with the Gnu test case capability.sh for util and reproduce the example using setcap, LS_COLORS, and uu_ls. Compare the output with GNU ls, then make the test pass so files with Linux capabilities use the ca indicator whether or not the ex indicator is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust, shell
- Domain
- cli, operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100