bug#22606: \? and \* behavior near the start of an expression disagree

2016-02-08 Thread Chris Calabro
(1) grep '?' # matches literal ? # (i would expect a parse error, but whatever) (2) grep '\?' # also matches literal ? (3) grep ' \?' # matches everything, but given that the last # expression matches a literal ?, i would expect this # to match a spac

bug#22606: \? and \* behavior near the start of an expression disagree

2016-02-08 Thread Eric Blake
tag 22606 notabug thanks On 02/08/2016 06:28 PM, Chris Calabro wrote: Thanks for the report. However, the behavior you see is intentional. It helps to read POSIX on how grep uses Basic Regular Expressions: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html In particular: "T