diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-27 20:58:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-27 20:58:24 +0000 |
commit | 043959b0be340e0918b33a47859249b04abe7b21 (patch) | |
tree | e8d35801c8eb0f2c82b29f27798a718d1895092e /Test/D04parameter.ztst | |
parent | 4a34c9628942a3631500e51b57ce4ccb4ac77fb4 (diff) | |
download | zsh-043959b0be340e0918b33a47859249b04abe7b21.tar.gz zsh-043959b0be340e0918b33a47859249b04abe7b21.tar.xz zsh-043959b0be340e0918b33a47859249b04abe7b21.zip |
25760: add (~) flag
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r-- | Test/D04parameter.ztst | 24 |
1 files changed, 24 insertions, 0 deletions
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 |