1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

38728: Tests: Add tests for the ':a' and ':A' modifiers.

This commit is contained in:
Daniel Shahaf 2016-06-21 01:53:22 +00:00
parent a7d5d239e6
commit 8468f24af4
2 changed files with 29 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-07-05 Daniel Shahaf <d.s@daniel.shahaf.name>
* 38728: Test/D02glob.ztst: Tests: Add tests for the ':a' and
':A' modifiers.
2016-07-04 Peter Stephenson <p.stephenson@samsung.com>
* 38783: Doc/Zsh/contrib.yo, Functions/Misc/zcalc: tweaks for

View file

@ -654,4 +654,27 @@
[[ "z" != [$~cset] ]] || print Fail 4
[[ "1" = [$~cset] ]] || print Fail 5
[[ "b" != [$~cset] ]] || print Fail 6
0:character set specified as active variabe
0:character set specified as active variable
() { print -l -- $@:a } / /..{,/} /1 /nonexistent/..{,/} /deeper/nonexistent/..{,/}
0:modifier ':a' doesn't require existence
>/
>/
>/
>/1
>/
>/
>/deeper
>/deeper
() { set -- ${PWD}/$^@; print -l -- $@:A } glob.tmp/nonexistent/foo/bar/baz
0:modifier ':A' doesn't require existence
*>*/glob.tmp/nonexistent/foo/bar/baz
ln -s dir3/subdir glob.tmp/link
() {
print ${1:A} | grep glob.tmp
} glob.tmp/link/../../hello
rm glob.tmp/link
0:modifier ':A' resolves '..' components before symlinks
# There should be no output