From 043959b0be340e0918b33a47859249b04abe7b21 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 27 Sep 2008 20:58:24 +0000 Subject: 25760: add (~) flag --- Test/D04parameter.ztst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'Test') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 721396e73..376932b34 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1,4 +1,5 @@ # Test parameter expansion. Phew. +# (By the way, did I say "phew"?) %prep @@ -1062,3 +1063,26 @@ >1 >1 >1 + + foo=("|" "?") + [[ "|" = ${(j.|.)foo} ]] && print yes || print no + [[ "|" = ${(j.|.)~foo} ]] && print yes || print no + [[ "|" = ${(~j.|.)foo} ]] && print yes || print no + [[ "|" = ${(~~j.|.)foo} ]] && print yes || print no + [[ "|" = ${(j.|.~)foo} ]] && print yes || print no + [[ "x" = ${(j.|.)foo} ]] && print yes || print no + [[ "x" = ${(j.|.)~foo} ]] && print yes || print no + [[ "x" = ${(~j.|.)foo} ]] && print yes || print no + [[ "x" = ${(~~j.|.)foo} ]] && print yes || print no + [[ "x" = ${(j.|.~)foo} ]] && print yes || print no +0:GLOBSUBST only on parameter substitution arguments +>no +>yes +>yes +>no +>no +>no +>yes +>no +>no +>no -- cgit 1.4.1