1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

40071: change Dash back to "-" before evaluating named directory expansions

This commit is contained in:
Barton E. Schaefer 2016-12-03 15:00:46 -08:00
parent 334ed65e27
commit a409adc33b
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-12-03 Barton E. Schaefer <schaefer@zsh.org>
* 40071: Src/subst.c: change Dash back to "-" before evaluating
named directory expansions
2016-12-03 Daniel Shahaf <d.s@daniel.shahaf.name>
* 40068: Src/params.c, Test/B02typeset.ztst: Abort execution
@ -54,7 +59,7 @@
* 40036: Completion/Debian/Command/_bts: Complete removal
syntaxes correctly.
2016-11-29 Barton E. Schaefer <schaefer@brasslantern.com>
2016-11-29 Barton E. Schaefer <schaefer@zsh.org>
* 40034: Src/subst.c: clear badcshglob when ignoring errors

View file

@ -650,6 +650,8 @@ filesubstr(char **namptr, int assign)
char *ptr, *tmp, *res, *ptr2;
int val;
if (str[1] == Dash)
str[1] = '-';
val = zstrtol(str + 1, &ptr, 10);
if (isend(str[1])) { /* ~ */
*namptr = dyncat(home ? home : "", str + 1);