From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 7 Dec 2020 20:19:25 +0300 From: "Dmitry V. Levin" To: Alexey Gladkov Message-ID: <20201207171925.GB13984@altlinux.org> References: <20201127134431.3854941-1-vseleznv@altlinux.org> <20201207165809.GA13984@altlinux.org> <20201207170741.rfnoiuojeaq427ii@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207170741.rfnoiuojeaq427ii@example.org> Cc: devel@lists.altlinux.org, "Vladimir D. Seleznev" Subject: Re: [devel] [PATCH v4 1/2] Add diff exclude option for gear-rules X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2020 17:19:25 -0000 Archived-At: List-Archive: List-Post: On Mon, Dec 07, 2020 at 06:07:41PM +0100, Alexey Gladkov wrote: > On Mon, Dec 07, 2020 at 07:58:09PM +0300, Dmitry V. Levin wrote: > > On Fri, Nov 27, 2020 at 04:44:30PM +0300, Vladimir D. Seleznev wrote: [...] > > > @@ -376,6 +376,13 @@ get_diff_name() > > > ;; > > > name=*) diff_name="${opt#name=}" > > > ;; > > > + exclude=*) > > > + [ -z "$(printf %s "${opt#exclude=}" |tr -d '[:alnum:]_.?*-/![]')" ] || > > > + rules_error "Invalid diff exclude pattern specified: ${opt#exclude=}" > > > > Why '[:alnum:]_.?*-/![]' ? > > because glob patterns have these symbols. This doesn't match the pattern check in extract_pattern(), should it be updated? Would it be useful to have a single definition of this set somewhere? -- ldv