Re: Re:Re: Cat a directory

2003-09-25 Thread Jerry McAllister
However, the purpose of cat is to write the contents of a file to STDOUT. And yes, in UNIX pretty much everything is considered a file. But that does not change the fact that people do not experience a directory as a file, and in their use of language also clearly differentiate between the

Re: Re:Re: Cat a directory

2003-09-25 Thread Mark
- Original Message - From: Jerry McAllister [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:21 PM Subject: Re: Re:Re: Cat a directory But nonetheless very illustrative of how the OS takes into consideration an unexpected

Re: Re:Re: Cat a directory

2003-09-25 Thread Mark
[it seems I forgot a paragraph] - Original Message - From: Jerry McAllister [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:21 PM Subject: Re: Re:Re: Cat a directory I would like to see a switch added to cat, like -d, which

Re: Re:Re: Cat a directory

2003-09-25 Thread Jerry McAllister
Now, either contribute something or be done with it. I contributed a few clear, well-argumented reasons in favor of my position ^^^ wrong reasons that cat should change its default behavior. You, otoh, have only demonstrated that you are a

Re: Re:Re: Cat a directory

2003-09-24 Thread Mark
- Original Message - From: Matthew Hunt [EMAIL PROTECTED] To: Karlsson Mikael HKI/SOSV [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:26 PM Subject: Re: Re:Re: Cat a directory cat /bin on Solaris 9 does exactly the same thing as on FreeBSD; shows the contents

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

Re:Re: Cat a directory

2003-09-23 Thread David Fleck
On Tue, 23 Sep 2003, Karlsson Mikael HKI/SOSV wrote: [...] which are all supported in for example GNU/Linux ls, except 10 and 11, but then they have an extra option to put different coloring on files with a special ending. So that archives, moviefiles, soundfiles etc. have a special color

Re: Re:Re: Cat a directory

2003-09-22 Thread Matthew Hunt
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

Re: Re:Re: Cat a directory

2003-09-22 Thread Jerry McAllister
Read my first post before reading this thing so you'll be on the right track Other *NIX systems seem to have done this to their cat program so why can't FreeBSD? See above. FreeBSD has a better view of the world than some of the kiddie OSes. Try to run for example cat /bin in

Re:Re: Cat a directory

2003-09-19 Thread Warren Block
On Thu, 19 Sep 2003, Karlsson Mikael HKI/SOSV wrote: I personally think that some of these tests should be added to the real distributable version of cat that comes with FreeBSD cause I can't be the only one that this bugs. I mean what could a little more code hurt to the program since cat

Re:Re: Cat a directory

2003-09-18 Thread Karlsson Mikael HKI/SOSV
OK! I admit that it isn't THE BIGGEST problem for me BUT it is A problem. What I ment in my last mail was that it is the biggest problem concerning cat. Since someone always seems to cat a binary file without having the knowledge of what it causes. I personally think that some of these tests