diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2019-06-20 11:13:05 +0100 |
commit | b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf (patch) | |
tree | 360211057d08021d5e1e7291e5d81d4d9ba2bf76 /Test/D02glob.ztst | |
parent | 80aa807a61cf10ebf459ba8e06621a5ec33041dc (diff) | |
download | zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.gz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.tar.xz zsh-b8dc5a7f6d52df98a546ad3b39104f4b8e7b8daf.zip |
44435: Handling digita arguments for :h and :t.
Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r-- | Test/D02glob.ztst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index 08b71dc8e..5638e1255 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -700,3 +700,31 @@ print ${value//[${foo}b-z]/x} 0:handling of - range in complicated pattern context >xx + + pathtotest=glob.tmp/my/test/dir/that/does/not/exist + mkdir -p $pathtotest + print $pathtotest(:h) + print $pathtotest(:h0) + print $pathtotest(:h10) + print $pathtotest(:h3) + print $pathtotest(:h2) + print $pathtotest(:h1) + print $pathtotest(:t) + print $pathtotest(:t0) + print $pathtotest(:t10) + print $pathtotest(:t3) + print $pathtotest(:t2) + print $pathtotest(:t1) +0:modifiers :h and :t with numbers (main test is in D04parameter.ztst) +>glob.tmp/my/test/dir/that/does/not +>glob.tmp/my/test/dir/that/does/not +>glob.tmp/my/test/dir/that/does/not/exist +>glob.tmp/my/test +>glob.tmp/my +>glob.tmp +>exist +>exist +>glob.tmp/my/test/dir/that/does/not/exist +>does/not/exist +>not/exist +>exist |