GNU bug report logs -
#24547
24.4; dired should colour in sockets and pipes
Previous Next
Reported by: trentbuck <at> gmail.com (Trent W. Buck)
Date: Mon, 26 Sep 2016 08:07:01 UTC
Severity: wishlist
Tags: fixed
Found in version 24.4
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>> What are the remaining special file types possible in ls output?
>>
>> For example, in /run I see only "s" and "p" files. But in /dev there are
>> also "b" and "c". These "block" and "character" device files could be
>> highlighted using the same face with sockets and pipes.
>
> As I hinted earlier, GNU ls's --color output is governed by the dircolors program.
> "dircolors --print-database" gives a bunch of stuff. The part you asked about is:
>
> DIR 01;34 # directory
> LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
> # numerical value, the color is as for the file pointed to.)
> MULTIHARDLINK 00 # regular file with more than one link
> FIFO 40;33 # pipe
> SOCK 01;35 # socket
> DOOR 01;35 # door
> BLK 40;33;01 # block device driver
> CHR 40;33;01 # character device driver
> ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ...
> MISSING 00 # ... and the files they point to
Thanks for the detailed explanation. I wonder what would be a common word
for these special file types: pipe, socket, block and character device?
Currently the face name is 'dired-socket', but this doesn't seem right
since it's used not only for socket, but also for pipe, block and character
devices. Is 'dired-special' a better name? At least the manual
(info "(coreutils) What information is listed") named them "special file".
This bug report was last modified 5 years and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.