Fix use of "export" to work with traditional shells.
[pspp] / tests / command / sysfile-info.sh
index 4f08b16627fd1f31177910c72c462c2a0afd657b..ffa00c35528fb823ca01ddf9ef18f2343234724b 100755 (executable)
@@ -10,7 +10,8 @@ here=`pwd`;
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
@@ -70,11 +71,11 @@ $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="filter output"
-grep -v '^Created: ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered
+egrep -v '^(Created|Endian): ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-diff $TEMPDIR/out-filtered - << EOF
+diff -b -B -w $TEMPDIR/out-filtered - << EOF
 1.1 DATA LIST.  Reading free-form data from the command file.
 +--------+------+
 |Variable|Format|
@@ -86,7 +87,6 @@ diff $TEMPDIR/out-filtered - << EOF
 2.1 SYSFILE INFO.  
 File:      pro.sav
 Label:     No label.
-Endian:    Little.
 Variables: 2
 Cases:     3
 Type:      System File.