GNU bug report logs - #57604
[ef]grep usage -> POSIXLY_CORRECT?

Previous Next

Package: grep;

Reported by: Karl Berry <karl <at> freefriends.org>

Date: Mon, 5 Sep 2022 22:08:02 UTC

Severity: normal

Merged with 58502, 60257, 66582

Full log


View this message in rfc822 format

From: Simon Josefsson <simon <at> josefsson.org>
To: 57604 <at> debbugs.gnu.org
Cc: karl <at> freefriends.org
Subject: bug#57604: [ef]grep usage -> POSIXLY_CORRECT?
Date: Wed, 07 Sep 2022 10:02:04 +0200
[Message part 1 (text/plain, inline)]
Paul Eggert via Bug reports for GNU grep <bug-grep <at> gnu.org> writes:

> $ grep '\Q' /dev/null
> grep: warning: stray \ before Q
> $ grep '[:alpha:]' /dev/null
> grep: character class syntax is [[:space:]], not [:space:]

Is the use of diagnostic warnings like this supported by POSIX?
Personally, I'd rather have tools exit with an error code on invalid
uses rather than issuing warning messages.

/Simon
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 298 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.