On Wed, Oct 05, 2005 at 12:23:52PM -0700, Ben Pfaff wrote:
     Jason Stover <[EMAIL PROTECTED]> 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.


Attachment: signature.asc
Description: Digital signature

_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to