summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Test/D04parameter.ztst6
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cc6e84dc5..ab2940395 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2016-12-03 Barton E. Schaefer <schaefer@zsh.org>
+ * unposted: Test/D04parameter.ztst: regression test for 40071
+
* 40071: Src/subst.c: change Dash back to "-" before evaluating
named directory expansions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 4cbd2fa0f..834550cf5 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -852,6 +852,7 @@
foo='b* e*'
print ${(e)~foo}
print ${(e)~=foo}
+ setopt nomatch
0:Rule 10: Re-Evaluation
>b* e*
>boringfile evenmoreboringfile
@@ -2049,3 +2050,8 @@
0:Out-of-range multiple array subscripts with quoting, with and without (@)
>1
>0
+
+ a='~-/'; echo $~a
+0:Regression: "-" became Dash in workers/37689, breaking ~- expansion
+*>*
+F:We do not care what $OLDPWD is, as long as it doesn't cause an error