Re: DD converts LF - CR / LF

2005-05-08 Thread Paul Eggert
Eric Blake [EMAIL PROTECTED] writes: it now defaults to the underlying mount mode when the user does not specify binary or text. In my opinion, dd should default to binary when neither text nor binary is specified Hmm, overriding the explicit advice of the system administrator? How common is

Re: DD converts LF - CR / LF

2005-05-08 Thread Sebastian Schuberth
Paul Eggert wrote: Eric Blake [EMAIL PROTECTED] writes: it now defaults to the underlying mount mode when the user does not specify binary or text. In my opinion, dd should default to binary when neither text nor binary is specified Hmm, overriding the explicit advice of the system

Re: DD converts LF - CR / LF

2005-05-08 Thread Christopher Faylor
On Sun, May 08, 2005 at 08:02:30AM -0700, Paul Eggert wrote: Eric Blake [EMAIL PROTECTED] writes: it now defaults to the underlying mount mode when the user does not specify binary or text. In my opinion, dd should default to binary when neither text nor binary is specified Hmm, overriding the

Re: DD converts LF - CR / LF

2005-05-07 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paul Eggert on 5/6/2005 12:01 PM: That looks pretty complicated. How about if we just rely on open and fcntl to do the work? If they don't work, they should. I installed this into coreutils: 2005-05-06 Paul Eggert [EMAIL

Re: DD converts LF - CR / LF

2005-05-07 Thread Sebastian Schuberth
2005-05-06 Paul Eggert [EMAIL PROTECTED] * NEWS: dd has new iflag= and oflag= flags binary and text. * doc/coreutils.texi (dd invocation): Document it. * src/dd.c (flags, usage): Support it. That's okay for a start, but it now defaults to the underlying mount mode when the

Re: DD converts LF - CR / LF

2005-05-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Brian Dessent on 5/6/2005 2:06 AM: Sebastian Schuberth wrote: my mounts are all text mode, i.e. the Default Text File Type is DOS. Nevertheless, shouldn't dd if=test_unix.txt of=text.txt create an exact copy of test_unix.txt? It

Re: DD converts LF - CR / LF

2005-05-06 Thread Brian Dessent
Eric Blake wrote: Predefining O_BINARY as the default input_flags and output_flags is a stopgap measure. While it is fine for other programs, such as od, to Doesn't that overly complicate things? Seems to me that whenever you use dd you are interested in copying fixed record length data. It

Re: DD converts LF - CR / LF

2005-05-06 Thread Paul Eggert
That looks pretty complicated. How about if we just rely on open and fcntl to do the work? If they don't work, they should. I installed this into coreutils: 2005-05-06 Paul Eggert [EMAIL PROTECTED] * NEWS: dd has new iflag= and oflag= flags binary and text. *