Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5EAB3431FBC for ; Wed, 5 Feb 2014 05:12:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I03tUQmW5WdW for ; Wed, 5 Feb 2014 05:12:43 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id A3C97431FAE for ; Wed, 5 Feb 2014 05:12:43 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 023F7100033; Wed, 5 Feb 2014 15:12:34 +0200 (EET) From: Tomi Ollila To: Austin Clements , Jani Nikula Subject: Re: [PATCH 0/5] lib: make folder: prefix literal In-Reply-To: <20140204200249.GO4375@mit.edu> References: <87y525m649.fsf@awakening.csail.mit.edu> <87r47wfltb.fsf@nikula.org> <87iot8f4vg.fsf@nikula.org> <20140130220234.GI4375@mit.edu> <87fvo2yjc4.fsf@nikula.org> <20140204200249.GO4375@mit.edu> User-Agent: Notmuch/0.17+55~g4397960 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Feb 2014 13:12:47 -0000 On Tue, Feb 04 2014, Austin Clements wrote: > Quoth Jani Nikula on Feb 01 at 4:54 pm: > >> I kind of like the "/**" suffix for recursive, but there's two small >> wrinkles: 1) it needs quoting on the command line (unlike my original >> suggestion of just "/" suffix), and 2) what should the top level >> recursive search be? path:"**" or path:"/**" or path:"./**"? I guess the >> first one is most obvious? > > The shell quoting is annoying, but depending on the shell, it should > at least give an error (zsh) or Just Work (apparently bash and sh pass > the unexpanded glob through if it doesn't match anything?). In zsh: $ echo whatever:/** whatever:/** Quick check with: ksh-20100621-12.el6.x86_64, dash-0.5.5.1-3.1.el6.x86_64 busybox-1.15.1-20.el6.x86_64 (busybox sh & busybox ash) and http://sourceforge.net/projects/heirloom/files/heirloom-sh/050706/heirloom-sh-050706.tar.bz2/download all do the same (non-)expansion. I vaguely remember some shells did puke some error when expansion yielded no results... maybe some shell option does it. Definitely not mainstream feature. Tomi