Cat a directory

2003-09-18 Thread Karlsson Mikael HKI/SOSV
I've noticed along time that it's possible to cat a directory. I just don't see the point of it being possible to do so since it only returns jibrish. I know that in Linux for example cat returns an error message like this: cat: mail/: Is a directory. I also noticed that in both FreeBSD and Linux

Re:Re: Cat a directory

2003-09-18 Thread Karlsson Mikael HKI/SOSV
others won't be bugged. Other *NIX systems seem to have done this to their cat program so why can't FreeBSD? and why is this already done to less and not cat? Dan Nelson wrote (18.9.2003 17:33): >In the last episode (Sep 18), Karlsson Mikael HKI/SOSV said: >> What I just wanted t

Re:Re:Re: Cat a directory

2003-09-21 Thread Karlsson Mikael HKI/SOSV
Read my first post before reading this thing so you'll be on the right track Warren Block wrote (19.9.2003 17:41): > >Says who? cat works fine on binary files. The problem you are having >is that people are using cat to *display* files. "Fixing" that problem >could break cat for its more s

Re:Re: Cat a directory

2003-09-23 Thread Karlsson Mikael HKI/SOSV
Matthew Seaman wrote (22.9.2003 19:01): > >Have you tried typing 'ls -G' using the system ls(1) recently? > Yes, I have and I even have it aliased in my .bashrc file like this "alias ls='ls -F -G'" so that ls will always use colors and type endings. But my point was that native BSD system ls only