From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11844 invoked by alias); 30 May 2013 14:49:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31435 Received: (qmail 8979 invoked from network); 30 May 2013 14:49:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Various notes on KSH_GLOB Date: Thu, 30 May 2013 16:30:45 +0200 Sender: chris@juno Message-ID: <87obbsczfu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dhcp-138-246-84-105.dynamic.eduroam.mwn.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Hi, I tried using KSH_GLOB instead of EXTENDED_GLOB recently (because I really dislike the re-interpretation of ^. What's the benefit over typing *~?) However, I stumbled on some problems: % zsh -f juno% zsh --version zsh 5.0.2 (x86_64-unknown-linux-gnu) juno% mkdir -p v/v/v/v/v juno% setopt kshglob juno% echo *(v|v) v juno% echo *(v) zsh: unknown file attribute juno% echo *(v|v/) zsh: bad pattern: *(v|v/) juno% setopt extendedglob juno% echo (v/)# v/ v/v/ v/v/v/ v/v/v/v/ v/v/v/v/v/ I realize that both mksh and ksh93 neither support directory recursion with *() (but this would be nice to have, IMO, at last with the explicit /), which probably only makes this a documentation bug: >> *(...) Match any number of occurrences. (Like `(...)#'.) Thoughts? (Perhaps I just need a widget to type \^ when I type ^ after whitespace...) -- Christian Neukirchen http://chneukirchen.org