summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-11-15 18:01:32 +0000
committerPeter Stephenson <pws@zsh.org>2016-11-15 18:01:32 +0000
commit921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c (patch)
tree47a0b6481316082d3899ad190e444db0d89e698d /Test
parent39947: Additional test for array subscripts. (diff)
downloadzsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.gz
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.bz2
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.lz
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.xz
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.zst
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.zip
39949: Special case for "-" in directory names.
It can be sh-tokenized to Dash to allow for appearing in ranges after substitution, so needs to be turned back to "-" in that case.
Diffstat (limited to 'Test')
-rw-r--r--Test/B09hash.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/B09hash.ztst b/Test/B09hash.ztst
index 49f304838..7b5dfb43e 100644
--- a/Test/B09hash.ztst
+++ b/Test/B09hash.ztst
@@ -69,3 +69,11 @@
>one=/first/directory
>two=/directory/the/second
>three=/noch/ein/verzeichnis
+
+ hash -d t-t=/foo
+ i="~t-t"
+ print ~t-t/bar
+ print ${~i}/rab
+0:Dashes are untokenized in directory hash names
+>/foo/bar
+>/foo/rab