git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 1/4] CodingGuidelines: allow grep -E

From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date
Sep 21, 2022, 13:02 UTC
Message-ID
<4ad1ac9d9b25f2fc5a2ada28cae0413c04b07e21.1663765176.git.congdanhqx@gmail.com>
In-Reply-To
<cover.1663765176.git.congdanhqx@gmail.com>

Despite forbidden by CodingGuidelines, our usage of 'grep -E' has been increased over the years, and noone has come and complained.

Let's lift the restriction.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
 Documentation/CodingGuidelines | 2 --
 1 file changed, 2 deletions(-)
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index 9fca21cc5f..cb7a367ea0 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -162,8 +162,6 @@ For shell scripts specifically (not exhaustive):
 
    - We do not use \{m,n\};
 
-   - We do not use -E;
-
    - We do not use ? or + (which are \{0,1\} and \{1,\}
      respectively in BRE) but that goes without saying as these
      are ERE elements not BRE (note that \? and \+ are not even part
-- 
2.38.0.rc0
Previous: Đoàn Trần Công DanhNext: Đoàn Trần Công Danh
Message 2 of 6 in “allow "grep -E", remove {e,f}grep usage”
  1. 0/4 allow "grep -E", remove {e,f}grep usageĐoàn Trần Công Danh, Sep 21, 2022
  2. 1/4 CodingGuidelines: allow grep -EĐoàn Trần Công Danh, Sep 21, 2022
  3. 2/4 t: remove \{m,n\} from BRE grep usageĐoàn Trần Công Danh, Sep 21, 2022
  4. Junio C HamanoSep 21, 2022
  5. 3/4 t: convert egrep usage to "grep -E"Đoàn Trần Công Danh, Sep 21, 2022
  6. 4/4 t: convert fgrep usage to "grep -F"Đoàn Trần Công Danh, Sep 21, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.