about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-05-09 09:46:23 +0100
committerPeter Stephenson <pws@zsh.org>2017-05-09 09:46:23 +0100
commit263a0c247620f86532424727f7ed07ca7540fbf3 (patch)
treedd7070ffc7cc07c48760c291af46c8d2f2d3af6c /Test
parent51eff6168e40d760bdb715bc6fc5420d26449c4c (diff)
downloadzsh-263a0c247620f86532424727f7ed07ca7540fbf3.tar.gz
zsh-263a0c247620f86532424727f7ed07ca7540fbf3.tar.xz
zsh-263a0c247620f86532424727f7ed07ca7540fbf3.zip
41078: Empty psvar could cause bad dereference in prompt expansion
Diffstat (limited to 'Test')
-rw-r--r--Test/D01prompt.ztst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/D01prompt.ztst b/Test/D01prompt.ztst
index 08187287d..11f18dc71 100644
--- a/Test/D01prompt.ztst
+++ b/Test/D01prompt.ztst
@@ -209,3 +209,7 @@
  print -P -f '%%Sfoo%%s\n' bar
 0:print -P -f
 >%Sfoo%s
+
+  print ${(%U)Y-%(v}
+0:Regression test for test on empty psvar
+>