diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-03 15:00:46 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-12-03 15:00:46 -0800 |
commit | a409adc33bc17c9538a5afbdcb3c643b82cc6ce9 (patch) | |
tree | 769c2dabdf049ebe00c6a86c83fc1d027444547c /Src | |
parent | 334ed65e2765062a449897d70925255929eae8a8 (diff) | |
download | zsh-a409adc33bc17c9538a5afbdcb3c643b82cc6ce9.tar.gz zsh-a409adc33bc17c9538a5afbdcb3c643b82cc6ce9.tar.xz zsh-a409adc33bc17c9538a5afbdcb3c643b82cc6ce9.zip |
40071: change Dash back to "-" before evaluating named directory expansions
Diffstat (limited to 'Src')
-rw-r--r-- | Src/subst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c index 06d2c9ea9..64b440027 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -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); |