summaryrefslogtreecommitdiff
path: root/testsuite/recall2.sed
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/recall2.sed')
-rw-r--r--testsuite/recall2.sed5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/recall2.sed b/testsuite/recall2.sed
new file mode 100644
index 0000000..f668773
--- /dev/null
+++ b/testsuite/recall2.sed
@@ -0,0 +1,5 @@
+# Starting from sed 4.1.3, regexes are compiled with REG_NOSUB
+# if they are used in an address, so that the matcher does not
+# have to obey leftmost-longest. The tricky part is to recompile
+# them if they are then used in a substitution.
+/\(ab*\)\+/ s//>\1</g