Cat a directory
mph at astro.caltech.edu
Mon Sep 22 09:21:21 PDT 2003
On Mon, Sep 22, 2003 at 09:06:00AM +0300, Karlsson Mikael HKI/SOSV wrote:
> Try to run for example "cat /bin" in Linux, HP-UX, Solaris and other
> *NIXes and I'm 90% certain that they will not show the directory but
> an error message saying something.
"cat /bin" on Solaris 9 does exactly the same thing as on FreeBSD; shows
the contents of the directory, just like you're asking it to. Just because
you can't fathom a use for this behavior doesn't mean it's wrong. If
you don't want to see it, don't ask "cat" to show it to you.
Matthew Hunt <mph at astro.caltech.edu> * Science rules.
More information about the freebsd-questions