From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86020 invoked by alias); 2 Oct 2019 17:35:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 85891 invoked by uid 89); 2 Oct 2019 17:35:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=mentions X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Oct 2019 17:35:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EC31956035; Wed, 2 Oct 2019 13:35:31 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jTKi0mICvSxD; Wed, 2 Oct 2019 13:35:31 -0400 (EDT) Received: from murgatroyd (75-166-72-156.hlrn.qwest.net [75.166.72.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 6276F56034; Wed, 2 Oct 2019 13:35:31 -0400 (EDT) From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , GDB Administrator , gdb-patches@sourceware.org Subject: Re: New ARI warning Wed Oct 2 01:56:22 UTC 2019 References: <20191002015622.GA57488@sourceware.org> <875zl7yvhy.fsf@tromey.com> Date: Wed, 02 Oct 2019 17:35:00 -0000 In-Reply-To: (Simon Marchi's message of "Wed, 2 Oct 2019 13:30:05 -0400") Message-ID: <87zhijt5i5.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-10/txt/msg00075.txt.bz2 >>>>> "Simon" == Simon Marchi writes: >> +/%p[^][sF]/ && !/%prec/ { Simon> My mind is a bit confused by that regex: aren't the [^] and [sF] considered Simon> as two successive character sets? If so, the caret character, which negates Simon> the character set, applies to nothing. I believe that in most regexp syntax, a "]" doesn't need to be quoted in a character class, provided it is either the first character (like "[]...]") or comes immediately after the "^" (like "[^]...]"). The gawk manual mentions this, though it does also recommend using backslash, so maybe I should just do that. (info "(gawk) Bracket Expressions") To include one of the characters '\', ']', '-', or '^' in a bracket expression, put a '\' in front of it. For example: [d\]] matches either 'd' or ']'. Additionally, if you place ']' right after the opening '[', the closing bracket is treated as one of the characters to be matched. Tom