Re: UNIX/Linux text files

2004-04-21 Thread Paul E Condon
On Wed, Apr 21, 2004 at 07:32:15PM -0400, David Clymer wrote: > On Wed, 2004-04-21 at 08:45, John Hasler wrote: > > Adam Funk quotes: > > > Eric Raymond, "The Art of UNIX Programming", chapter "What UNIX Gets > > > Wrong": "Unix files have no structure above byte level." > > > > Eric is wrong. Th

Re: UNIX/Linux text files

2004-04-21 Thread David Clymer
On Wed, 2004-04-21 at 08:45, John Hasler wrote: > Adam Funk quotes: > > Eric Raymond, "The Art of UNIX Programming", chapter "What UNIX Gets > > Wrong": "Unix files have no structure above byte level." > > Eric is wrong. This not a bug. This is a major feature. For those of us who are not intim

Re: UNIX/Linux text files

2004-04-21 Thread John Hasler
Adam Funk quotes: > Eric Raymond, "The Art of UNIX Programming", chapter "What UNIX Gets > Wrong": "Unix files have no structure above byte level." Eric is wrong. This not a bug. This is a major feature. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI -- To UNSU

Re: UNIX/Linux text files

2004-04-21 Thread Adam Funk
On Tuesday 20 April 2004 15:50, John Hasler wrote: > Adam Funk writes: >> Yes, but -T and -B tests in Perl know the difference [between text >> and binary files]. > > They guess, using heuristics. Both return true on an empty file. I know that any *n*x file is just a list of bytes. [1] I was j

Re: UNIX/Linux text files

2004-04-21 Thread Adam Funk
On Tuesday 20 April 2004 19:30, Derrick 'dman' Hudson wrote: > On Tue, Apr 20, 2004 at 04:10:30PM +, Adam Funk wrote: > | On Tuesday 20 April 2004 16:50, John Hasler wrote: > | > | > Ciaran writes: > | >> The file command uses magic to figure it out. Is that any better? > | > > | > The point

Re: UNIX/Linux text files

2004-04-20 Thread s. keeling
Incoming from Dragan Cvetkovic: > Adam Funk <[EMAIL PROTECTED]> writes: > > > On Tuesday 20 April 2004 16:50, John Hasler wrote: > > > >> Ciaran writes: > >>> The file command uses magic to figure it out. Is that any better? > >> > >> The point is that there are no "text files": just files that h

Re: UNIX/Linux text files

2004-04-20 Thread Karsten M. Self
on Tue, Apr 20, 2004 at 11:30:13AM +0100, Ciaran Johnston ([EMAIL PROTECTED]) wrote: > Karsten M. Self said: > > on Tue, Apr 20, 2004 at 07:20:30PM +1000, Nathan Stanley > > ([EMAIL PROTECTED]) wrote: > >> Someone recently told me there is a difference between Unix and Linux > >> text file formats.

Re: UNIX/Linux text files

2004-04-20 Thread Dragan Cvetkovic
Adam Funk <[EMAIL PROTECTED]> writes: > On Tuesday 20 April 2004 16:50, John Hasler wrote: > >> Ciaran writes: >>> The file command uses magic to figure it out. Is that any better? >> >> The point is that there are no "text files": just files that happen to >> contain text. This not true of all

Re: UNIX/Linux text files

2004-04-20 Thread Paul Johnson
"Nathan Stanley" <[EMAIL PROTECTED]> writes: > Someone recently told me there is a difference between Unix and Linux text > file formats. Is this true? Not that I have experienced. -- Paul Johnson <[EMAIL PROTECTED]> pgp0.pgp Description: PGP signature

Re: UNIX/Linux text files

2004-04-20 Thread Derrick 'dman' Hudson
On Tue, Apr 20, 2004 at 04:10:30PM +, Adam Funk wrote: | On Tuesday 20 April 2004 16:50, John Hasler wrote: | | > Ciaran writes: | >> The file command uses magic to figure it out. Is that any better? | > | > The point is that there are no "text files": just files that happen to | > contain te

Re: UNIX/Linux text files

2004-04-20 Thread Adam Funk
On Tuesday 20 April 2004 16:50, John Hasler wrote: > Ciaran writes: >> The file command uses magic to figure it out. Is that any better? > > The point is that there are no "text files": just files that happen to > contain text. This not true of all operating systems. You mean the traditional Ma

Re: UNIX/Linux text files

2004-04-20 Thread John Hasler
Ciaran writes: > The file command uses magic to figure it out. Is that any better? The point is that there are no "text files": just files that happen to contain text. This not true of all operating systems. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI -- To

Re: UNIX/Linux text files

2004-04-20 Thread Ciaran Johnston
Dragan Cvetkovic said: > Adam Funk <[EMAIL PROTECTED]> writes: > >> On Tuesday 20 April 2004 13:50, John Hasler wrote: >> >>> Ciaran writes: Karsten probably answered the question you meant to ask, not the question you did ask >>> >>> And the pendantically correct answer is that Unix and

Re: UNIX/Linux text files

2004-04-20 Thread Dragan Cvetkovic
Adam Funk <[EMAIL PROTECTED]> writes: > On Tuesday 20 April 2004 13:50, John Hasler wrote: > >> Ciaran writes: >>> Karsten probably answered the question you meant to ask, not the >>> question you did ask >> >> And the pendantically correct answer is that Unix and Linux do not >> have >> text fil

Re: UNIX/Linux text files

2004-04-20 Thread John Hasler
Adam Funk writes: > Yes, but -T and -B tests in Perl know the difference [between text and > binary files]. They guess, using heuristics. Both return true on an empty file. -- John Hasler You may treat this work as if it [EMAIL PROTECTED] were in the public domain. Danci

Re: UNIX/Linux text files

2004-04-20 Thread Adam Funk
On Tuesday 20 April 2004 13:50, John Hasler wrote: > Ciaran writes: >> Karsten probably answered the question you meant to ask, not the >> question you did ask > > And the pendantically correct answer is that Unix and Linux do not > have > text files. All Unix/Linux files are binary. Yes, but -

Re: UNIX/Linux text files

2004-04-20 Thread John Hasler
Ciaran writes: > Karsten probably answered the question you meant to ask, not the question > you did ask And the pendantically correct answer is that Unix and Linux do not have text files. All Unix/Linux files are binary. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood,

Re: UNIX/Linux text files

2004-04-20 Thread Ciaran Johnston
Karsten M. Self said: > on Tue, Apr 20, 2004 at 07:20:30PM +1000, Nathan Stanley > ([EMAIL PROTECTED]) wrote: >> Someone recently told me there is a difference between Unix and Linux >> text file formats. Is this true? > > Yes, ours goes to 11. > > Wait. Wrong mockumentary. > > > CR vs. CR+LF > >

Re: UNIX/Linux text files

2004-04-20 Thread Karsten M. Self
on Tue, Apr 20, 2004 at 07:20:30PM +1000, Nathan Stanley ([EMAIL PROTECTED]) wrote: > Someone recently told me there is a difference between Unix and Linux > text file formats. Is this true? Yes, ours goes to 11. Wait. Wrong mockumentary. CR vs. CR+LF # aptitude install sysutils # man d