We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cf960c + 3ef8bb0 commit ec1e1cfCopy full SHA for ec1e1cf
S19-command-line-options/03-dash-p.t
@@ -6,7 +6,7 @@ use Test;
6
7
use Test::Util;
8
9
-plan 2;
+plan 3;
10
11
=begin pod
12
@@ -45,3 +45,16 @@ is_run(
45
'-p works in combination with s:g///',
46
:compiler-args['-p'],
47
);
48
+
49
+# RT #124247
50
+#?rakudo.jvm skip 'hangs, RT #131393'
51
+is_run(
52
+ 's[(\d)] = "{$0 * 10}"', # program
53
+ "5 breads and 2 fishes\n", # input
54
+ {
55
+ out => "50 breads and 2 fishes\n", # expected
56
+ },
57
+ '-p -e using $0 in {} in "" in rhs in assign to s[] form subst',
58
+ :compiler-args['-p'],
59
+);
60
0 commit comments