[PATCH 0/5] lib: make folder: prefix literal
Tomi Ollila
tomi.ollila at iki.fi
Wed Feb 5 05:12:34 PST 2014
On Tue, Feb 04 2014, Austin Clements <amdragon at MIT.EDU> 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
More information about the notmuch
mailing list