bin/111711: cat(1) misbehaves with directories as parameters

Charlie ROOT root at zeta.org.au
Tue Apr 17 09:17:12 UTC 2007


On Mon, 16 Apr 2007, Ricardo Nabinger Sanchez wrote:

>> Description:
> If a directory is passed to cat, it outputs its contents, (sometimes) mangles the terminal, and may misbehave, like in the second run with ". Makefile" as parameters.

This is the expected behaviour.  Directories are files, and directory files
are readable except on broken file systems.

Bruce


More information about the freebsd-bugs mailing list