[pass] [PATCH] Beef up bash completion

Brian Mattern rephorm at rephorm.com
Fri Sep 21 22:22:32 CEST 2012


On Fri, 21 Sep 2012, Jeffrey Ratcliffe wrote:
> Strange. Spaces work fine for me (just tested again to make sure).

I have an entry: 'test/example one'.

$ pass te<tab>
$ pass test/example one<enter>
test/example is not in the password store.

Spaces need to be quoted by the completion mechanism for this to be
useful, which is why I was passing through printf. Here, although the
printf expansion of utf8 is ugly, it appears to be functional.

E.g. with an entry: 'utf8⏎':

$pass utf<tab>
$pass $'utf8\342\217\216'<enter>
<password printed out>

I have a few more local changes that I need to clean up and get in
(including using += instead of [$i] to append to COMPREPLY, which I see
you did as well)

Brian



More information about the Password-Store mailing list