apertus-open-source-cinema / axiom-firmware

AXIOM firmware (linux image, gateware and software tools)
GNU General Public License v3.0
173 stars 54 forks source link

COLORLS setup doesn't show broken symlinks #164

Open herbertp opened 4 years ago

herbertp commented 4 years ago

Broken symlinks (i.e. symlinks without target) are not shown any different from those with a target.

[operator@beta] ~ $ touch good
[operator@beta] ~ $ ln -s good good_symlink
[operator@beta] ~ $ ln -s bad bad_symlink
[operator@beta] ~ $ ll *symlink
lrwxrwxrwx 1 operator users 3 Aug 16 13:25 bad_symlink -> bad
lrwxrwxrwx 1 operator users 4 Aug 16 13:25 good_symlink -> good
[root@beta] ~ # touch good  
[root@beta] ~ # ln -s good good_symlink
[root@beta] ~ # ln -s bad bad_symlink
[root@beta] ~ # ll *symlink
lrwxrwxrwx 1 root root 3 Aug 16 13:24 bad_symlink -> bad
lrwxrwxrwx 1 root root 4 Aug 16 13:24 good_symlink -> good

COLORLS has a separate attribute for broken symlinks and as we use symlinks for e.g. gateware (firmware) files it would be very beneficial to show those.