Thread (16 messages) flat view 16 messages, 3 authors, 2016-06-15

Re: [PATCH v2 1/3] git-submodule: New subcommand 'summary' (1) - code framework

From: Ping Yin <hidden>
Date: 2016-06-15 22:44:19


 > +             grep '^:160000\|:[0-9]\+ 160000' |

 This looks troublesome.

  - [0-9] is obviously wrong and [0-7] is what you meant;
  - \| and \+ are not BRE but GNU.
man grep says
 In  basic regular expressions the metacharacters ?, +, {, |, (, and )
lose their special meaning; instead use the backslashed versions \?,
\+, \{, \|, \(, and \).

Doen't it mean that '\|' is BRE ?


-- 
Ping Yin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help