GNU bug report logs - #30033
`grep --fixed-strings --regexp=…` is an annoying syntax → Introduce --pattern=… option

Previous Next

Package: grep;

Reported by: "H.-Dirk Schmitt" <admin <at> computer42.org>

Date: Mon, 8 Jan 2018 21:35:01 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "H.-Dirk Schmitt" <admin <at> computer42.org>
To: bug-grep <at> gnu.org
Subject: `grep --fixed-strings --regexp=…` is an
 annoying syntax → Introduce
 --pattern=… option
Date: Mon, 08 Jan 2018 22:01:06 +0100
Hello!

just a minor annoyance is that there is no alternative option name for
--regexp=… 

Together with --fixed-strings this leads to ambiguous shell scripts.

My suggestion / feature request is to add --pattern=… as alias for 
--regexp=…

In addition I suggest the analog aliases:
  --word-pattern for --word-regexp
  --line-pattern for --line-regexp


In anticipation of the reply „Why not to use simply the short options?“
the reply:
Long options providing a readable API, and this „bug report“ is
intended to improve the readability of shell scripts.

Best Regards,

H.-Dirk Schmitt







This bug report was last modified 5 years and 168 days ago.

Previous Next


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