aboutsummaryrefslogtreecommitdiff
path: root/tests/25-replace-capture.sh
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2023-11-25 14:57:19 -0500
committerBruce Hill <bruce@bruce-hill.com>2023-11-25 14:57:19 -0500
commite6e482054de77f3fe5d65344da86065373cf5f23 (patch)
treea6876c73bccf490512be5ff93fa808f3ce8d1c95 /tests/25-replace-capture.sh
parente0a55ba6176df325b65b1768bba929805444bf88 (diff)
Deprecate '-p' flag and replace backslash interpolation with curly brace
interpolation
Diffstat (limited to 'tests/25-replace-capture.sh')
-rw-r--r--tests/25-replace-capture.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/25-replace-capture.sh b/tests/25-replace-capture.sh
index f401605..70fc889 100644
--- a/tests/25-replace-capture.sh
+++ b/tests/25-replace-capture.sh
@@ -1,4 +1,4 @@
# Captures with @ can be referenced in a replacement by @1, @2, etc.
-# Example: bp -p '"=" _ @+`0-9 => "= -@1"' replaces "x = 5" with "x = -5"
-# Note: @0 refers to the entire match, e.g. bp -p '"foo" => "xx@0xx"' replaces "foo" with "xxfooxx"
-bp -p '@`a,e,i,o,u => "{@1}" / .'
+# Example: bp '{"=" _ @+`0-9 => "= -@1"}' replaces "x = 5" with "x = -5"
+# Note: @0 refers to the entire match, e.g. bp '{"foo" => "xx@0xx"}' replaces "foo" with "xxfooxx"
+bp '{@`a,e,i,o,u => "{@1}" / .}'