automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: fix broken quoting in the generated yacc grammar


From: Peter Rosin
Subject: [PATCH] tests: fix broken quoting in the generated yacc grammar
Date: Fri, 17 Feb 2012 22:15:29 +0100

Fixes problem introduced by v1.11-1912-ge0906b7 "tests: avoid
spurious failure with non-bison yacc" from 12-02-2012.

* tests/suffix10.tap (Makefile.am): Avoid outer single quotes
when we need to produce single quotes.
---
 tests/suffix10.tap |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Hi!

I stumbled on what seems like a trivial problem.  But I'm
not very fluent in yacc, so I thought I'd better ask if
this is the right fix...

Is it?  Ok for master?

Cheers,
Peter

diff --git a/tests/suffix10.tap b/tests/suffix10.tap
index 1b812cb..aa98245 100755
--- a/tests/suffix10.tap
+++ b/tests/suffix10.tap
@@ -42,7 +42,7 @@ libfoo_la_SOURCES = foo.x_
          && echo 'void yyerror (char *s) {}' \
          && echo '%}' \
          && echo '%%' \
-         && echo 'foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};' \
+         && echo "foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};" \
          && echo '%%' \
 ## Account for VPATH issues on weaker make implementations.
          && cat `test -f '$<' || echo $(srcdir)/`$<; \
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]