summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/esyscmd.m4
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2001-10-14 09:41:56 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2001-10-14 09:41:56 +0000
commitedecffea86bc87b08aa3712d73ee5699b8fd2018 (patch)
tree630fe5fa575b950ec7584033f2520c0e4c7184c2 /regress/usr.bin/m4/esyscmd.m4
parent5df2ca0894388a5488a434bff7b3164639270833 (diff)
esyscmd test, requires current m4
Diffstat (limited to 'regress/usr.bin/m4/esyscmd.m4')
-rw-r--r--regress/usr.bin/m4/esyscmd.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/regress/usr.bin/m4/esyscmd.m4 b/regress/usr.bin/m4/esyscmd.m4
new file mode 100644
index 00000000000..a9b83c478e4
--- /dev/null
+++ b/regress/usr.bin/m4/esyscmd.m4
@@ -0,0 +1,42 @@
+changequote(`{',`}')dnl
+dnl
+esyscmd({sh -c "m4<<EOF
+define(_bp,hi there a)
+define(_comb,
+_bp($1$2)
+_bp($2$1)
+)
+define(bp,
+_comb(aaaa,foo0)
+_comb(bbbb,foo0)
+_comb(cccc,foo0)
+_comb(dddd,foo0)
+_comb(aaaa,foo0)
+_comb(bbbb,foo0)
+_comb(cccc,foo0)
+_comb(dddd,foo0)
+)
+bp(a00)
+bp(b00)
+bp(c00)
+bp(d00)
+bp(e00)
+bp(f00)
+bp(g00)
+bp(h00)
+bp(i00)
+bp(j00)
+bp(k00)
+bp(l00)
+bp(m00)
+bp(n00)
+bp(o00)
+bp(p00)
+bp(q00)
+bp(r00)
+bp(s00)
+bp(t00)
+bp(u00)
+bp(v00)
+bp(w00)
+EOF"})dnl