I would like to fix make test to handle BSD
diff, and have a question: What is the 'best' approach?
I am a new to this kind of housekeeping, so I could use
some advice.

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 can think of three ways to fix this:

1. Store the diff command in a variable the shell script
can see, then tell the script to execute it. The configure script
would set the variable to 'diff -b -w' on a BSD machine and
'diff -B -b -w' on a machine with GNU diff.

2. Pass '-B' as an argument or option to the test script if the machine
has GNU diff.

3. Drop the -B (which would presumably break some tests, which would
necessitate rewriting those tests, which implies this is no fix at
all).

Is there another, uniformly better way?

-Jason
-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org


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

Reply via email to