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:
parent
334ed65e27
commit
a409adc33b
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue