coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

ls: gnu test case `capability` compatibility

Open matrixhead opened this issue 1 year ago • 0 comments

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.

matrixhead avatar Jul 05 '24 13:07 matrixhead