From 25413054c11fc4b67284d4d6db48272182da1d26 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 8 Mar 2008 01:20:49 +0000 Subject: 24699: bug with ${(Q)...} on initial ">" bug with ${(z)...} on string with unterminated "(" --- Test/D04parameter.ztst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Test/D04parameter.ztst') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 6775803a7..57b87d687 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -333,6 +333,34 @@ 0:${(Q)...} with handling of $'...' >XABY + # The following may look a bit random. + # For the split we are checking that anything that + # would normally be followed by a different word has + # an argument break after it and anything that doesn't doesn't. + # For the (Q) we are simply checking that nothing disappears + # in the parsing. + foo=' {six} (seven) >eight< }nine{ |forty-two| $many$ )ten( more' + array=(${(z)foo}) + print -l ${(Q)array} +0:${(z)...} and ${(Q)...} for some hard to parse cases +>< +>five +>> +>{six} +>( +>seven +>) +>> +>eight +>< +>}nine{ +>| +>forty-two +>| +>$many$ +>) +>ten( more + psvar=(dog) setopt promptsubst foo='It shouldn'\''t $(happen) to a %1v.' -- cgit 1.4.1