bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

diff -X option under DOS


From: Pierre Raoul
Subject: diff -X option under DOS
Date: Wed, 13 Aug 2003 18:42:46 +0200

Hello,

It's not really a bug but rather a lack of information. To create a file to
the  -X option, you must put one pattern by line... and each line must be
ended by a LF ('\n'). But under DOS, any editor will end a line with CR+LF
('\r\n') by default. So the patterns of such a file will never be match, for
diff will search pattern+CR...

I didn't find this piece of information in the manuel and it took me quite a
time before I get it.

Neither option -w nor --strip-trailing-cr change this point.

I think it will be great:
- to clearly stated this point in the manuel,
- to add a option to diff, to choice the type of eol (LF or CR+LF) in -X
file.

Regards

Pierre Raoul

<<attachment: winmail.dat>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]