From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28371 invoked by alias); 20 Apr 2009 17:15:18 -0000 Received: (qmail 28358 invoked by uid 22791); 20 Apr 2009 17:15:17 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Apr 2009 17:15:10 +0000 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id CCE941C0007A; Mon, 20 Apr 2009 19:15:05 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 0CFFF90239; Mon, 20 Apr 2009 19:15:08 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id 7B1bhMZUo-vy; Mon, 20 Apr 2009 19:15:06 +0200 (CEST) Received: from igel.home (DSL01.83.171.172.104.ip-pool.NEFkom.net [83.171.172.104]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 20 Apr 2009 19:15:06 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id DFEAF10C2B1; Mon, 20 Apr 2009 19:15:05 +0200 (CEST) From: Andreas Schwab To: "Pierre Muller" Cc: "'Eli Zaretskii'" , Subject: Re: [PATCH] gdbadmin/ss/gdb_ari.sh modify editCase/UCASE rules References: <007201c9bd4a$e64c9d20$b2e5d760$@u-strasbg.fr> <83bpqyml9s.fsf@gnu.org> <000c01c9c1d1$2cffd860$86ff8920$@u-strasbg.fr> X-Yow: .. Should I get locked in the PRINCIPAL'S OFFICE today -- or have a VASECTOMY?? Date: Mon, 20 Apr 2009 17:15:00 -0000 In-Reply-To: <000c01c9c1d1$2cffd860$86ff8920$@u-strasbg.fr> (Pierre Muller's message of "Mon, 20 Apr 2009 18:00:49 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2009-04/txt/msg00518.txt.bz2 "Pierre Muller" writes: > PS: tell me if I am wrong, but I had to use > /complicated pattern/ { > instructions for match > } > ! /same complicated pattern/ { > instructions if no match > } You can put the match test in the action part: { if (/complicated pattern/) { instructions for match } else { instructions if no match } } Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."