summary refs log tree commit diff
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
parente9dbfa8046e0da6dbb37340df9d3c95f410a713b (diff)
downloadzsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.gz
zsh-921b39ac6b25dbfcc477fc7db4ed1c5c3ffb778c.tar.xz
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