RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-07 Thread Hughes, Bill
> Sent: 06 April 2004 16:20 From: Dave Korn ..snip.. > > From: cygwin-owner On Behalf Of Hughes, Bill > > Sent: 06 April 2004 14:59 > > > > Sent: 06 April 2004 14:10 From: [EMAIL PROTECTED] > > ..snip.. > > > Please can you tell me how to grep for an ASCII 00 (and for > > > that matter > > > an

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread Igor Pechtchanski
On Tue, 6 Apr 2004, fergus wrote: > >> GNU grep detects binary files by looking for a '\0' byte. > > I know this is not strictly Cygwin-specific but it _is_ generated by the > preceding relevant recent comment in a busy thread: > > Please can you tell me how to grep for an ASCII 00 (and for that m

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread Hannu E K Nevalainen
Advocacy: Remove irrelevant, i.e. not objective and 100% prooved, "safety code". > From: Dave Korn > > From: cygwin-owner On Behalf Of fergus > > Sent: 06 April 2004 14:10 > > > >> GNU grep detects binary files by looking for a '\0' byte. > > > > I know this is not strictly Cygwin-specific but it

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of fergus > Sent: 06 April 2004 14:10 > >> GNU grep detects binary files by looking for a '\0' byte. > > I know this is not strictly Cygwin-specific but it _is_ > generated by the > preceding relevant recent comment in a busy thread: >

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Hughes, Bill > Sent: 06 April 2004 14:59 > > Sent: 06 April 2004 14:10 From: [EMAIL PROTECTED] > ..snip.. > > > > > Please can you tell me how to grep for an ASCII 00 (and for > > that matter > > anything from ASCII 1B to 1F, and 7

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread Hughes, Bill
> Sent: 06 April 2004 14:10 From: [EMAIL PROTECTED] ..snip.. > > Please can you tell me how to grep for an ASCII 00 (and for > that matter > anything from ASCII 1B to 1F, and 7F to FF)? I'm no expert but grep [\x00] foo.bar might be what you're after. > (Or, I suppose in general for any of 00

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files

2004-04-06 Thread fergus
>> GNU grep detects binary files by looking for a '\0' byte. I know this is not strictly Cygwin-specific but it _is_ generated by the preceding relevant recent comment in a busy thread: Please can you tell me how to grep for an ASCII 00 (and for that matter anything from ASCII 1B to 1F, and 7F

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Ken Thompson > Sent: 05 April 2004 12:40 > I don't think the behavior should be changed. d2u stands for > dos to unix > which means \r\n to \n. Why would one expect a dos to unix utility to > convert mixed line terminator files. W

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Hannu E K Nevalainen
> From: Ken Thompson > I don't think the behavior should be changed. d2u stands for dos to unix > which means \r\n to \n. Why would one expect a dos to unix utility to > convert mixed line terminator files. If you need such a utility, then > add one but don't take a utility that does dos to unix

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Hannu E K Nevalainen
> From: David Fritz > You guys are missing the point. Charles Wilson mentioned a side > effect of the > code at issue in the original post and suggested that it was valuable. I'm opposing the 'valuable' in this. Running commands from the prompt has always required some knowledge and thought. Th

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Buchbinder, Barry (NIH/NIAID)
work is needed if one also wishes to handle Mac line endings ("\r"). ;-) - Barry -Original Message- From: Ken Thompson Sent: Monday, April 05, 2004 7:40 AM To: [EMAIL PROTECTED] Subject: RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files. I don't think t

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Max . Hyre
> I'd like to see what some other users, who haven't yet stated > their opinions, have to say... Change it, say I. If I run d2u/u2d on a binary file, on my head be it. -- Best wishes, Max Hyre -- Unsubscribe info: http://cygw

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Chris Jefferson
Ken Thompson wrote: I don't think the behavior should be changed. d2u stands for dos to unix which means \r\n to \n. Why would one expect a dos to unix utility to convert mixed line terminator files. If you need such a utility, then add one but don't take a utility that does dos to unix and try

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Ken Thompson
n it in to "anything" to unix or if you do then change the name. Just my 2 cents worth > -Original Message- > From: Charles Wilson > Sent: Monday, April 05, 2004 12:33 AM > Subject: Re: Bogus assumption prevents d2u/u2d/conv/etal working on > mixed files. > &

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-05 Thread Ross Boulet
> -Original Message- > From: cygwin-owner On Behalf Of Charles Wilson > Sent: Sunday, April 04, 2004 11:33 PM > [...] > > I think there is some misunderstanding about the cygutils package. I > did not write any of it.(*) I do not defend any of the > design decisions > that were made

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread Karl M
TECTED] Subject: Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files. Date: Mon, 05 Apr 2004 00:32:36 -0400 David Fritz wrote: You guys are missing the point. Charles Wilson mentioned a side effect of the code at issue in the original post and suggested that it was valuable. I think

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread Charles Wilson
David Fritz wrote: You guys are missing the point. Charles Wilson mentioned a side effect of the code at issue in the original post and suggested that it was valuable. I think there is some misunderstanding about the cygutils package. I did not write any of it.(*) I do not defend any of the d

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread David Fritz
You guys are missing the point. Charles Wilson mentioned a side effect of the code at issue in the original post and suggested that it was valuable. Personally, I don't care if they attempt to detect binary files or not. My point was (and is) that: *If detection of binary files is desirable*,

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread Igor Pechtchanski
On Sun, 4 Apr 2004, GARY VANSICKLE wrote: > > Noo... Please, remove all of these safety checks. > > There must be some kind of user sanity presupposition. Or else the tools > > soon will be crippled to a state where they are unusable for normal work. > > FWIW I'm with Hannu. Should rm ask you, "

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread GARY VANSICKLE
> Noo... Please, remove all of these safety checks. > There must be some kind of user sanity presupposition. Or else the tools > soon will be crippled to a state where they are unusable for normal work. FWIW I'm with Hannu. Should rm ask you, "Do you *really* want to delete this file?", or make

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread Igor Pechtchanski
On Sat, 3 Apr 2004, David Fritz wrote: > Charles Wilson wrote: > [...] > > (2) it's an attempt to prevent users from permanently scrogging binary > > files. See: d2u, on a binary file, is an irreversible operation. So, > > if you do "d2u *" you'll probably kill something deep inside some binar

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-04 Thread Hannu E K Nevalainen
> From: David Fritz > Sent: Sunday, April 04, 2004 6:46 AM > Charles Wilson wrote: > [...] > > (2) it's an attempt to prevent users from permanently > scrogging binary > > files. See: d2u, on a binary file, is an irreversible operation. So, > > if you do "d2u *" you'll probably kill something

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-03 Thread David Fritz
Charles Wilson wrote: [...] (2) it's an attempt to prevent users from permanently scrogging binary files. See: d2u, on a binary file, is an irreversible operation. So, if you do "d2u *" you'll probably kill something deep inside some binary file, and you can't fix it -- unless some minimal s

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-03 Thread Igor Pechtchanski
On Fri, 2 Apr 2004, Charles Wilson wrote: > Dave Korn wrote: > > > I was pretty stunned to find d2u didn't have the same effect as tr -d. A > > few seconds work in the debugger, however, made it clear. > > > > Right inside conv.c, in the main convert (...) function, there's an > > attempted o

Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files.

2004-04-02 Thread Charles Wilson
Dave Korn wrote: I was pretty stunned to find d2u didn't have the same effect as tr -d. A few seconds work in the debugger, however, made it clear. Right inside conv.c, in the main convert (...) function, there's an attempted optimisation. After opening the file for conversion, it reads a ch