1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-24 05:11:08 +02:00

16357: change (n) to (u) so (n) can be reserved. for numeric sorting.

This commit is contained in:
Clint Adams 2001-12-17 14:06:27 +00:00
parent 13ab7280aa
commit 8659013fb8
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2001-12-17 Clint Adams <clint@zsh.org>
* 16357: Doc/Zsh/expn.yo, Src/subst.c:
change (n) to (u) so (n) can be reserved.
for numeric sorting.
2001-12-17 Oliver Kiddle <opk@zsh.org>
* 16351: Src/params.c: fix bug in parameter unset code

View file

@ -727,6 +727,9 @@ for special parameters defined by the shell
)
enditem()
)
item(tt(u))(
Expand only the first occurrence of each unique word.
)
item(tt(U))(
Convert all letters in the result to upper case.
)
@ -761,9 +764,6 @@ access single words in the result, one has to use nested expansions as
in `tt(${${(z)foo}[2]})'. Likewise, to remove the quotes in the
resulting words one would do: `tt(${(Q)${(z)foo}})'.
)
item(tt(n))(
Expand only the first occurrence of each unique word.
)
enditem()
The following flags (except tt(p)) are followed by one or more arguments

View file

@ -997,7 +997,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
shsplit = 1;
break;
case 'n':
case 'u':
unique = 1;
break;