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

To reply to this bug, email your comments to 30033 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#30033; Package grep. (Mon, 08 Jan 2018 21:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "H.-Dirk Schmitt" <admin <at> computer42.org>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Mon, 08 Jan 2018 21:35:01 GMT) Full text and rfc822 format available.

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







Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Tue, 31 Dec 2019 20:55:01 GMT) Full text and rfc822 format available.

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

Previous Next


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