grep: add pmatch and eflags arguments to match_one_pattern()