Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Order of modifiers and flags in parameter expansion
- X-seq: zsh-users 8608
- From: Hannu Koivisto <azure@xxxxxx>
- To: Zsh Users' List <zsh-users@xxxxxxxxxx>
- Subject: Order of modifiers and flags in parameter expansion
- Date: Thu, 17 Mar 2005 19:52:52 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
Greetings,
I have a script foo-files that prints filenames separated by
newlines. I want directory parts of those filenames and then I
want to get rid of duplicates. So I write
${(u)${(f)"$(foo-files)"}:h} which works and the fact that it works
means that the h modifier is applied before the u flag.
Unfortunately I can't find where in the manual this order is
specified. I have read 13.3.2 but it didn't seem to consider the u
flag even indirectly. Any clues?
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author