[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bsd diff bug
From: |
John Darrington |
Subject: |
Re: bsd diff bug |
Date: |
Thu, 6 Oct 2005 07:13:19 +0800 |
User-agent: |
Mutt/1.5.9i |
On Wed, Oct 05, 2005 at 12:23:52PM -0700, Ben Pfaff wrote:
Jason Stover <address@hidden> writes:
> In the test scripts, the problem appears at lines that
> look like this:
>
> diff -B -b -w file.list - << EOF
>
> BSD diff does not recognize the -B option.
I was planning to, eventually, write a script that filters out
blank lines from both files passed as arguments and then passes
the filtered data along to diff. If we use any other nonportable
options, then it may be possible to handle them the same way.
I think this is the best way. Just replace
diff -B -b -w file.list - << EOF
EOF
with something like
diff file.list - << EOF
EOF | sed -e 's/^[\t ]*$//'
Hopefully all seds should recognise this (I'm not too sure about the return
status of this pipeline though. Have to think about it a bit more....)
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature