From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: remove duplicate array values in parameter expansion
Date: Mon, 17 Dec 2001 09:03:58 -0500 [thread overview]
Message-ID: <20011217140358.GA13478@dman.com> (raw)
In-Reply-To: <1011217042407.ZM2323@candle.brasslantern.com>
> Hrm. I think I'd have preferred to save (n) for numeric sorting. What
> was wrong with lower-case (u)? It's not used yet. If that's a problem,
> just use the digit (1)?
Nothing; In my quick search for a letter, I mistakenly took :u for (u).
Index: Doc/Zsh/expn.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v
retrieving revision 1.39
diff -u -r1.39 expn.yo
--- Doc/Zsh/expn.yo 2001/12/16 21:06:12 1.39
+++ Doc/Zsh/expn.yo 2001/12/17 14:02:35
@@ -727,6 +727,9 @@
)
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.
)
@@ -760,9 +763,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()
Index: Src/subst.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/subst.c,v
retrieving revision 1.27
diff -u -r1.27 subst.c
--- Src/subst.c 2001/12/17 01:16:37 1.27
+++ Src/subst.c 2001/12/17 14:02:36
@@ -997,7 +997,7 @@
shsplit = 1;
break;
- case 'n':
+ case 'u':
unique = 1;
break;
next prev parent reply other threads:[~2001-12-17 14:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-14 21:51 gripes Clint Adams
2001-12-14 22:15 ` gripes Bart Schaefer
2001-12-16 20:50 ` PATCH: remove duplicate array values in parameter expansion Clint Adams
2001-12-16 21:05 ` Clint Adams
2001-12-16 22:58 ` Zefram
2001-12-17 1:12 ` Clint Adams
2001-12-17 4:24 ` Bart Schaefer
2001-12-17 14:03 ` Clint Adams [this message]
2002-01-07 14:40 ` gripes Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011217140358.GA13478@dman.com \
--to=clint@zsh.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).