From 9471bbcfa06a87dcb6803a36d1208c214fa56003 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 1 Nov 2006 12:25:18 +0000 Subject: 22934, modified, see 22937: add HIST_SUBST_PATTERN option make ${.../#%...} anchor at both ends --- Test/E01options.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Test/E01options.ztst') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index da4020c15..1fbe0cc93 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -487,6 +487,20 @@ >tmpcd tmpfile1 tmpfile2 >tmp* + setopt histsubstpattern + print *(:s/t??/TING/) + foo=(tmp*) + print ${foo:s/??p/THUMP/} + foo=(one.c two.c three.c) + print ${foo:s/#%(#b)t(*).c/T${match[1]}.X/} + print *(#q:s/#(#b)tmp(*e)/'scrunchy${match[1]}'/) + unsetopt histsubstpattern +0:HIST_SUBST_PATTERN option +>TINGcd TINGfile1 TINGfile2 +>THUMPcd THUMPfile1 THUMPfile2 +>one.c Two.X Three.X +>scrunchyfile1 scrunchyfile2 tmpcd + setopt ignorebraces echo X{a,b}Y unsetopt ignorebraces -- cgit 1.4.1