diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2020-07-03 21:05:46 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2020-07-03 21:05:46 +0100 |
commit | 4e0058afc5ea040a788d70edbfa43593295816d1 (patch) | |
tree | 2ddff880e422a30b17333a329df25d24a902e975 /Src/subst.c | |
parent | 19390a1ba8dc983b0a1379058e90cd51ce156815 (diff) | |
download | zsh-4e0058afc5ea040a788d70edbfa43593295816d1.tar.gz zsh-4e0058afc5ea040a788d70edbfa43593295816d1.tar.xz zsh-4e0058afc5ea040a788d70edbfa43593295816d1.zip |
users/24971: ${(-)var} sorts on signed integers
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c index ed3f4a82b..b98ddaf02 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1979,6 +1979,10 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags, case 'n': sortit |= SORTIT_NUMERICALLY; break; + case '-': + case Dash: + sortit |= SORTIT_NUMERICALLY_SIGNED; + break; case 'a': sortit |= SORTIT_SOMEHOW; indord = 1; |