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

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

Re: Width not working with diff -y


From: Barry
Subject: Re: Width not working with diff -y
Date: Sat, 21 Jan 2006 18:06:22 -0500

-W specifies the maximum width of the output line, not the width of
the input line.  diff -y output lines contain the contents of two
input lines (one from each file), plus a gutter in between, plus
appropriate alignment for tabs, so if you specify -W 2048 then diff
will output slightly less than 1024 columns per file.  I hope that
explains the behavior you're observing.

Yes, thanks. It slipped my mind. I don't think of both files being on the
same line with my script because they're not, and I don't see the regular
diff output as it appears at the command prompt. I see it wrap. I wouldn't
have had the problem, but I read instructions for sdiff that said there's a
2048 width limit, so I didn't set it any higher. I set it to 9999 now and I
might make it higher. I don't really want any limit.



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 1/20/2006





reply via email to

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