This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch to escape '.' in gas-test.scm



'.' 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
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]