This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
patch to escape '.' in gas-test.scm
- To: cgen at sources dot redhat dot com
- Subject: patch to escape '.' in gas-test.scm
- From: Geoffrey Keating <geoffk at thief dot cygnus dot com>
- Date: Wed, 13 Jun 2001 18:02:39 -0700
- Reply-To: geoffk at redhat dot com
'.' is also a special character for regexp.
--
Geoff Keating <geoffk@redhat.com>
===File ~/patches/cgen-gastestdot.patch=====================
2001-06-13 Geoffrey Keating <geoffk@redhat.com>
* gas-test.scm (cgen-build.sh): Escape '.' as well.
Index: devo/cgen/gas-test.scm
===================================================================
RCS file: /cvs/cvsfiles/devo/cgen/gas-test.scm,v
retrieving revision 1.30
diff -p -u -p -r1.30 gas-test.scm
--- gas-test.scm 2001/05/11 02:20:21 1.30
+++ gas-test.scm 2001/06/14 00:57:04
@@ -219,6 +219,7 @@ function gentest {
-e 's/\\[/\\\\\\[/g' \
-e 's/\\]/\\\\\\]/g' \
-e 's/[+]/\\\\+/g' \
+ -e 's/[.]/\\\\./g' \
-e 's/[*]/\\\\*/g' | \
sed -e 's/^.*file format.*$/.*: +file format .*/' \
>>${1}.d
============================================================