summaryrefslogtreecommitdiffstats
path: root/src/sed/testsuite/recall2.sed
diff options
context:
space:
mode:
Diffstat (limited to 'src/sed/testsuite/recall2.sed')
-rw-r--r--src/sed/testsuite/recall2.sed5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sed/testsuite/recall2.sed b/src/sed/testsuite/recall2.sed
new file mode 100644
index 0000000..f668773
--- /dev/null
+++ b/src/sed/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