From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CD91E1F45A; Mon, 20 Apr 2020 01:32:11 +0000 (UTC) Date: Mon, 20 Apr 2020 01:32:11 +0000 From: Eric Wong To: Kyle Meyer Cc: meta@public-inbox.org Subject: Re: [PATCH v2] watchmaildir: support multiple watchheader values Message-ID: <20200420013211.GA30656@dcvr> References: <20200412215933.GA63705@dcvr> <20200420001332.14769-1-kyle@kyleam.com> <20200420004515.GA67768@dcvr> <877dybrmbx.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <877dybrmbx.fsf@kyleam.com> List-Id: Kyle Meyer wrote: > Eric Wong writes: > > > Kyle Meyer wrote: > > > > Thanks. Most everything looks good, some minor issues.. > > > >> +++ b/t/watch_muliple_headers.t > > > > speling :> > > Oops, thanks. > > >> +my $num = $ibx->mm->num_for('to@a.com'); > >> +ok(defined $num, 'Matched for address in To:'); > >> +my $num = $ibx->mm->num_for('cc@a.com'); > > > > That `$num' shadows/masks > > Ah, sorry. Aside from, er, actually knowing what I'm doing in perl and > seeing that obvious mistake, is there a way I could see the warning when > I run the tests? To run only the tests in that file as I was working on > it, I started with the command I saw when I called 'make test' and > restricted it to just the file, So, with typo included for historical > accuracy :), I was running Ah, oops. I normally use `make check' (or `check-run' after being primed by `check'). HACKING needs to be patched, and maybe a pointer to it in INSTALL. I definitely want warnings enabled for hackers. However, since rare new warnings will surface from Perl(*), I'm less and less enthusiastic about enabling them for non-hackers. So I'm moving away from `use warnings' and may even consider removing `-w' from the default shebangs and rely on PERL5OPT or `-w' being propagated via `check-run'. (*) Fwiw, I've hit only hit this 2-3 times in two decades. 1) each iterator reuse (it was intentional :P) 2) `{' and `}' in regexps I think there was another, but that's all I can think of atm.