about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2023-06-06 09:16:46 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2023-06-06 09:16:46 +0100
commit78102120b9c9e7485e7f537864fc2c24fbe0071a (patch)
tree48811d8ad11f2a086e9150d8a7b6f20debb79d90 /Test
parent63400fdbc5b8ce639a885629e4b1087b4277691d (diff)
downloadzsh-78102120b9c9e7485e7f537864fc2c24fbe0071a.tar.gz
zsh-78102120b9c9e7485e7f537864fc2c24fbe0071a.tar.xz
zsh-78102120b9c9e7485e7f537864fc2c24fbe0071a.zip
51816: add :S history modifier with pattern match
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 7990c2958..2fd2f975f 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -2754,3 +2754,13 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888
 0:(users/28784 inspired this) substituting a single-quoted backslash, part #3: control
 >xfooy
 
+ spacestring="string with spaces"
+ print ${spacestring:gs/[[:space:]]/ /}
+ print ${spacestring:g&}
+ print ${spacestring:gS/[[:space:]]//}
+ print ${spacestring:g&}
+0:Different behaviour of :s and :S modifiers
+>string with spaces
+>string with spaces
+>stringwithspaces
+>stringwithspaces