From 096e72ce78ac9fb6fa944261d6cc386f6d067326 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 27 Jan 2023 18:42:20 +0000 Subject: unposted (cribbed from users/28784 by Roman): Add XFail tests for substituting a single-quoting backslash. --- Test/D04parameter.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test/D04parameter.ztst') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 6bf55b4db..29275f13f 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -2727,3 +2727,18 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888 1:parameter expansion flags parsing error gives a clue ?(eval):1: error in flags near position 7 in '${(zZ+x+):-}' + slash='/' + print -r -- x${slash/'/'}y +-Df:(users/28784) substituting a single-quoted backslash, part #1: slash +>xy + + single_quote="'" + print -r -- x${single_quote/'/'}y +-Df:(users/28784) substituting a single-quoted backslash, part #2: single quote +>x/y + + control="foobar" + print -r -- x${control/'bar'}y +0:(users/28784 inspired this) substituting a single-quoted backslash, part #3: control +>xfooy + -- cgit 1.4.1