[pass] [PATCH] Add find/search command
Jason A. Donenfeld
Jason at zx2c4.com
Thu Apr 4 15:55:17 CEST 2013
On Thu, Apr 4, 2013 at 3:40 PM, Bernardo da Costa <
bernardo.da-costa at polytechnique.org> wrote:
>
> I would use pattern="${@// /*|*}" to avoid having both external commands
> and risk of quoting-mess. Unfortunately, this does not work (Bash will
> do substitution first, then only after make a single variable out of
> it.) So you could have
>
> pattern="$@"
> pattern="${pattern// /*|*}"
>
Yes, exactly. I just did that a few minutes ago in my own reworking before
I saw this email.
> I imagined
> $* could work here in a single command, but have not succeeded, so I
> leave as a research problem ;-)
>
This surprised me too... @ and * are "different".
>
> sed 's/\.gpg$//'
>
Thanks. There's another case in pass that uses the old construction.
Obviously this one is better suited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20130404/358aced6/attachment.html>
More information about the Password-Store
mailing list