I've attached a patch that allows a directory to match an LS_COLOR defined extension. Directory extensions are kept separate from file extensions by including a final '/' so that a directory named 'foo.txt' would not be colored as a text file. As an example, including "*.app/=00;32" in the LS_COLORS environment variable will cause 'ls --color' to make any directory with a name ending in ".app" to be colored green without changing the behavior for other directories or files with names ending in ".app"
Thanks, Kirk
ls.c.diff
Description: Binary data
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
