} This was working before your changes. Do you have any idea what
} would have caused this?
Sounds to me like the patch didn't apply cleanly, probably because of
the \r's in RunGrepTest.in. Others were complaining about this, which
is why he uuencoded the patch last time. Maybe you still had trouble?
Look at your RunGrepTest.in and make sure it has a line like this:
echo "---------------------------- Test 36 -----------------------------" >>testtry
$valgrind ./pcregrep -L -r --include=grepinput --exclude 'grepinput$' 'fox' $testdata | sort >>testtry
If you're missing the 'sort', then the patch didn't apply fully. You
may need to patch it up by hand.
As for the rest of your questions, I can take a stab at them:
} -cf=diff
} +cf="diff -u"
}
} Is this also a change you wanted to make to get the test suite passing?
This just makes the output easier to read when the test fails.
} - valgrind) valgrind="valgrind -q --leak-check=no";;
} + valgrind) valgrind="valgrind -q --leak-check=no";;
}
} Why did you change the above line?
It sounds like he uses a pretty over-eager editor, so I wouldn't be
surprised if it just went and stripped whitespace from the ends of the
lines automatically. I agree with you that's not generally a good
thing to put in a patch: it just causes clutter.
} -$valgrind ./pcregrep --newline=cr -F "def
} jkl" $testdata/grepinputx >>testtry
} +pattern=`printf 'def\rjkl'`
} +$valgrind ./pcregrep --newline=cr -F "$pattern" $testdata/grepinputx >>testtry
}
} Now, did you mean to make this change? Was the ^M in there on purpose?
} Same for the others in the patch.
Yes: the whole point of this change, actually, is to get rid of the ^M
(notice the ^M is in the '-' section).
craig