[pass] 'pass find gpg' returns everything

Lenz Weber mail at lenzw.de
Thu Jul 30 12:27:04 CEST 2015


Am 29.07.2015 um 12:57 schrieb nfb:
> But...
>
>
> » tree -C -l --noreport -P 'gpg*' --prune --matchdirs --ignore-case
> PASSDIR/
> PASSDIR/
> ├── GPG
> │   ├── firstkey.gpg
> │   └── secondkey.gpg
> └── homeserver
>     └── gpgkey.gpg
>
>
> which is good...
>
> Now this seems to be like this because in the pass script, the line
> preceding the tree command defines the 'terms' variable, which adds
> an asterisk in front of the parameters:
>
> local terms="*$(printf '%s*|*' "$@")"
>
> Maybe the culprit is here, but i can't figure out how to test it right
> now...
>

Such a solution would only search at the beginning of a word - I doubt thats what is intended by the search command.

>> So to fix this without meddling with tree, we would need some awk
>> magic, and that could get a bit ugly.
>> Anyone got a better solution?
> What about not using .gpg extension at all within the password-store?
>
I doubt that change would be accepted - not only would it change a paradigma of pass, it would also be incompatible to all existing isntallations.


More information about the Password-Store mailing list