From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20434 invoked by alias); 28 Oct 2015 07:07:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20838 Received: (qmail 13240 invoked from network); 28 Oct 2015 07:07:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-IBM-Helo: d06dlp01.portsmouth.uk.ibm.com X-IBM-MailFrom: vogt@linux.vnet.ibm.com X-IBM-RcptTo: zsh-users@zsh.org Date: Wed, 28 Oct 2015 07:57:02 +0100 From: Dominik Vogt To: Zsh Users Subject: Recursive globbing shorthand (a la **.c) Message-ID: <20151028065702.GA8236@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: Zsh Users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15102806-0033-0000-0000-00000499C3B6 Most of the time, I use recursive globbing to find files of certain types, e.g. $ ll **/*.c With the zsh here (4.3.17), recursive globbing works only with a plain ** anyway (i.e. in "**x" and "x**" the ** works just like a plain "*"). So, is it possible (or a useful future feature) to make "**" imply a trailing "/*" if not with a trailing pattern? Then we could type $ ll **.c as a shorthand, and the "traditional" uses would work without change (e.g. **/*.c or **/foo). (Note that on German keyboards, "/" and "*" are very awkward to type in a sequence because both need the left shift key held and the keys for the right hand are very far apart, so this is really a usability issue.) Ciao Dominik ^_^ ^_^