From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15310 invoked from network); 17 Mar 2005 17:53:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Mar 2005 17:53:33 -0000 Received: (qmail 83510 invoked from network); 17 Mar 2005 17:53:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Mar 2005 17:53:25 -0000 Received: (qmail 3909 invoked by alias); 17 Mar 2005 17:53:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8608 Received: (qmail 3895 invoked from network); 17 Mar 2005 17:53:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Mar 2005 17:53:17 -0000 Received: (qmail 82536 invoked from network); 17 Mar 2005 17:53:17 -0000 Received: from her-isrv.ionific.com (195.197.252.67) by a.mx.sunsite.dk with SMTP; 17 Mar 2005 17:53:13 -0000 Received: from her-gw.ionific.com ([195.197.252.66] helo=lynx.bothi.fi) by her-isrv.ionific.com with esmtp (Exim 3.35 #1 (Debian)) id 1DBzBI-0002gU-00 for ; Thu, 17 Mar 2005 19:53:12 +0200 Received: from azure by lynx.bothi.fi with local (Exim 3.35 #1 (Debian)) id 1DBzB8-0001Ny-00; Thu, 17 Mar 2005 19:53:02 +0200 To: Zsh Users' List Subject: Order of modifiers and flags in parameter expansion From: Hannu Koivisto Date: Thu, 17 Mar 2005 19:52:52 +0200 Message-ID: <87ekeexiq3.fsf@lynx.bothi.fi> User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-debian-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Hannu Koivisto X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 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