Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "Pierre Muller" <muller@ics.u-strasbg.fr>
Cc: "'Eli Zaretskii'" <eliz@gnu.org>,  <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdbadmin/ss/gdb_ari.sh modify  editCase/UCASE rules
Date: Mon, 20 Apr 2009 17:15:00 -0000	[thread overview]
Message-ID: <m2vdoz457q.fsf@igel.home> (raw)
In-Reply-To: <000c01c9c1d1$2cffd860$86ff8920$@u-strasbg.fr> (Pierre Muller's 	message of "Mon, 20 Apr 2009 18:00:49 +0200")

"Pierre Muller" <muller@ics.u-strasbg.fr> 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."


      reply	other threads:[~2009-04-20 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 21:49 [RFA] gdbadmin/ss/gdb_ari.sh update UCASE rule Pierre Muller
2009-04-15  7:25 ` Eli Zaretskii
2009-04-20 16:01   ` [PATCH] gdbadmin/ss/gdb_ari.sh modify editCase/UCASE rules Pierre Muller
2009-04-20 17:15     ` Andreas Schwab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2vdoz457q.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox