PATCH: fix a FIXME in dg.exp

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
Here's a patch to remove another FIXME.  I don't think there is any
need to escape any of the +'s -- for example the expressions
\[0-9\]+ and \[ \t\]+ clearly don't need escaped +.

Okay to commit?

Ben


diff --git a/lib/dg.exp b/lib/dg.exp
index dfd6a6c..8b4e3c0 100644
--- a/lib/dg.exp
+++ b/lib/dg.exp
@@ -189,9 +189,7 @@ proc dg-get-options { prog } {
     set tmp [grep $prog "{\[ \t\]\+dg-\[-a-z\]\+\[ \t\]\+.*\[ \t\]\+}" line]
     if {![string match "" $tmp]} {
        foreach i $tmp {
-           # FIXME: When to use "+" and "\+" isn't clear.
-           # Seems to me it took awhile to get this to work.
-           regexp "(\[0-9\]\+)\[ \t\]\+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]\+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
+           regexp "(\[0-9\]+)\[ \t\]+{\[ \t\]+(dg-\[-a-z\]+)\[ \t\]+(.*)\[ \t\]+}\[^\}\]*(\n|$)" $i i line cmd args
            append result " { $cmd $line $args }"
        }
     }

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 811 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVu5/i3Y2KIi1WYjUAQgvFxAAsvpG/0DgJ0UMWq03FFZ4jp/J18SQv557
lYgJJ01mQSQFLLyNQlELP+iJDRqT0plK/6LX3fo++MlF0oVdEd9W5GF3FW7SwjLG
qw/L79NVWxEyk3bK6ocYNFCUvYIw0j6UAVpxvG+JQ+Nfeiik26M/f0qIYyC+TAxK
vUqwZsR1iGv49Cu+RV2MQUUsmSkPphEtdVCmx1GBNWLxOwF2vqKgvWiCCGbIBWaz
wJxKltyQ5e3/xjrzIAX4bm7W1iLA6jsX7QAdW+9y02HPfeaQSqitOpAbR5Kr5cF3
G5VQaMb1XkUitVsa9/Q94EvaTXEHLdHPJwrjHnWyGANfagnGZcG/oXAm2sLehYuE
t5QR1nZvk/vtseuRBkgE1bmN6NpEABvUYK+ObHlTrU9UmqwqpVQGvfk9pUy1gSGe
Vi6k4I7GNe5wnelFnCW1KWtas7oEcF7pFbjaSt/OT9INWj3REpOjKgXVeG7mNVFY
21VGXSkafqk6E6eVuiP7aM5R7c0F0iWENCtPu8idMUui160nN2h4aHrAig3H5l17
NYMQenhevzfiTH/NIUNTlMB1e0YxKn0gN6kIXV7Ceq+dYGDWLEW068d6ZSDVSWk2
oRxAUVBN8FO9Q+R0/fKTXEdW7VUa6vjWBe0hX2T7uMOvGQ1G8GcEdh6l+lnsA42Q
NcvXQ63r+NQ=
=YK4z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.