> So I propose to add new ls color attribute to highlight files with more than 
> one hardlink. What do you think?

I see your point and I agree that it is better to highlight the filename 
than the number of links.

Changing to a new color, though, would lead to a minor problem, consider 
this example:

executable file                         = green
non-executable file                     = white
non-exec' file with multiple hard links = $(NEW_COLOR)
exec' file with multiple hard links     = ??? green or $(NEW_COLOR) ???

Only one information could be displayed, and if we have to choose, I 
think the executable bit is more important that the information on the 
number of hard links.
This could be fixed by changing the background color instead. The ls 
coloring code already has the capability to change background colors, so 
this would be simpler. So we would have

executable file                         = green
non-executable file                     = white
non-exec' file with multiple hard links = green with $(NEW_BACKGROUND)
exec' file with multiple hard links     = white with $(NEW_BACKGROUND)

But this could lead to poor readability for some text/background 
combinations.

Another possibility is changing attributes (bold/underscore/reverse), 
but I am not sure how many terminals honor them. If they work on many 
terminals, they could be the best choice.

Anyway, these were just my two cents, I am not an expert on this subject.
Thanks for your help and for your attention,

--federico

-- 
ls --color for hard links (wishlist)
https://bugs.launchpad.net/bugs/123423
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to