diff options
author | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
commit | b498bd7ce5b8f126f420f8f9fd4946912f8334da (patch) | |
tree | d85eca8c5af3da0279f6e661e1534664603911e0 /Test/D04parameter.ztst | |
parent | 63fd71f171e9d282985ba24e5f3ee2507bce6f47 (diff) | |
download | zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.gz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.xz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.zip |
36982: Fix bug with (#cN) patterns and remove redundant description.
We need to restore the current count of matches when returning to match at the point where we previously matched.
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r-- | Test/D04parameter.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index f1cc23e7c..cb7079c98 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1735,3 +1735,12 @@ 0:History modifier works the same for scalar and array substitution >ddd bdb cdc >ddd bdb cdc + + a=1_2_3_4_5_6 + print ${a#(*_)(#c2)} + print ${a#(*_)(#c5)} + print ${a#(*_)(#c7)} +0:Complicated backtracking with match counts +>3_4_5_6 +>6 +>1_2_3_4_5_6 |