Il 12/04/2014 12:48, Paul Eggert ha scritto:
Paolo Bonzini wrote:
Can't we just apply the revert that I posted?
That would would reintroduce the bug that I mentioned, so I'd rather not
do that. There's a better way forward if we want to continue to support
the obsoleted Unix interface on platforms lacking a Unix shell, which is
to have little egrep and fgrep executables that exec grep -E and grep -F.
It is also a regression that error messages will show "grep: error xyz"
rather than "egrep: error xyz".
Please provide a testcase for your bug, I'm not sure whether I
understand it. "fgrep" sets matcher to "fgrep" thanks to the "if"
statement below:
if (!m)
{
compile = matchers[0].compile;
execute = matchers[0].execute;
if (!matchers[1].name)
matcher = matchers[0].name;
}
Paolo