nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [nmh-workers] Stupid 'pick' question...


From: Valdis Klētnieks
Subject: Re: [nmh-workers] Stupid 'pick' question...
Date: Sat, 08 Jun 2019 14:03:12 -0400

On Fri, 07 Jun 2019 16:19:15 -0700, Bakul Shah said:
> You can directly use search as follows:
>
>       -search 'Subject[ \t]:[ \t]*\[PATCH [45]\.[0-9]'

 [~] grep ^Subject Mail/linux-kernel/321805
Subject: Re: [PATCH 4.9 04/20] net: Fix for_each_netdev_feature on Big endian
[~] scan `pick +linux-kernel 321805 -search 'Subject: \[PATCH [45]\.[0-9]' -and 
-from address@hidden -list`
321805      *  Thu 21Feb      7k Greg Kroah-Hartma  Re: [PATCH 4.9 04/20] net: 
Fix for_each_netdev_feature on Big endian <<On Thu, Feb 21,
[~] scan `pick +linux-kernel 321805 -search 'Subject: \[WOMBAT [45]\.[0-9]' 
-and -from address@hidden -list`
pick: no messages match specification
scan: no messages match specification

There's still something busticated here.  Why did it match even with the Re: in 
there?

       A  modified  grep(1)  is used to perform the matching, so the full 
regular expression
       (see ed(1)) facility is available within pattern.   With  -search,  
pattern  is  used
       directly, and with the others, the grep pattern constructed is:

            `component[ \t]*:.*pattern'

I understand why that .* was causing me indigestion.  But I'm having a hard
time matching "pattern is used directly" with what I'm seeing, unless -search
is *also* doing a split into component and pattern and constructing a grep
expression from the two that includes the .* implicitly?

Also, saw this under 'BUG' in the pick manpage:

The pattern syntax '[l-r]' is not supported; each letter to be matched must be
included within the square brackets.

However,  '[45].[0-9]' matches 4.14 and 5.1 quite nicely.

Attachment: pgprlOqguGWAR.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]