The file command currently prints out the lower byte only of device types... or '' if not ascii. % file /dev/kbmap /dev/kbmap: special file #/kbmap Now prints the rune. Reference: /n/sources/patch/applied/file-devtype Date: Sat Sep 4 17:26:44 CES 2010 Signed-off-by: 9@trstn.net --- /sys/src/cmd/file.c Sat Sep 4 17:19:29 2010 +++ /sys/src/cmd/file.c Sat Sep 4 17:19:28 2010 @@ -339,7 +339,7 @@ return; } if(mbuf->type != 'M' && mbuf->type != '|') { - print(mime ? OCTET : "special file #%c/%s\n", + print(mime ? OCTET : "special file #%C/%s\n", mbuf->type, mbuf->name); return; }