[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help needed in - diverting the output of diff command to a text file
From: |
Stepan Kasal |
Subject: |
Re: Help needed in - diverting the output of diff command to a text file |
Date: |
Tue, 16 Mar 2004 08:17:56 +0100 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Mon, Mar 15, 2004 at 08:47:27PM +0200, Eli Zaretskii wrote:
> > Date: Mon, 15 Mar 2004 10:46:29 +0100
> > From: Stepan Kasal <address@hidden>
> >
> > the problem is that the diff commands generates it's output with
> > unix-like line endings
>
> IMHO, that's a bug in that port of Diff: it should by default use
> Windows-style CR-LF pairs, not a single newline.
that's not so clear. You would be right if it were a real Windows port.
If it is cygwin, OTOH, which aims to create a unix-like environment
inside windows, the situation may differ.
I'd expect that cygwin diff will be able to work with unix text files
as if I were on a unix, producing same patch files as on unix.
But it could be possible to have smart diff which would auto-detect
the eol style and would produce a consistent output...
(This seems similar to what we discussed in conection with grep.)
> To the OP: what exactly do you mean by ``open the output file in
> WINDOWS''? What did you open it with?
Perhaps he means "double-click on .txt file", which often launches
notepad.
To the OP: try running "write" or "wordpad"---perhaps the lines will
be displayed correctly then.
Regards,
Stepan Kasal