[pass] [PATCH] Make test t0500-find.sh pass
Lenz Weber
mail at lenzw.de
Sat Mar 7 09:25:44 CET 2015
Hello Caleb,
actually I submitted a patch that should fix this behaviour this
thursday - it just hasn't been merged yet.
It's a bit more more exhaustive because it also handles colors (you
can't match on .gpg$ for coloured tree as actually it will look like
.gpg\x1B[0m$) and also symlinks (remove .gpg before -> as well).
As you are one of the rare persons that have problems (seems to only
happen on OSX/BSD, for myself everything was working fine), can you
please give it a try and feedback?
http://lists.zx2c4.com/pipermail/password-store/2015-March/001402.html
Lenz
On 07.03.2015 02:00, Caleb Marble wrote:
> pass was including '.gpg' in the directory tree. ---
> src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1
> deletion(-)
>
> diff --git a/src/password-store.sh b/src/password-store.sh index
> 47f7ffa..de2377c 100755 --- a/src/password-store.sh +++
> b/src/password-store.sh @@ -334,7 +334,7 @@ cmd_find() { [[ -z "$@"
> ]] && die "Usage: $PROGRAM $COMMAND pass-names..." IFS="," eval
> 'echo "Search Terms: $*"' local terms="*$(printf '%s*|*' "$@")" -
> tree -C -l --noreport -P "${terms%|*}" --prune --matchdirs
> --ignore-case "$PREFIX" | tail -n +2 | sed
> 's/\.gpg\(\x1B\[[0-9]\+m\)\{0,1\}\( ->\|$\)/\1\2/g' + tree -C -l
> --noreport -P "${terms%|*}" --prune --matchdirs --ignore-case
> "$PREFIX" | tail -n +2 | sed 's/\.gpg\(\x1B\[[0-9]\+m\)\{0,1\}\(
> ->\|$\)/\1\2/g' | sed 's/\.gpg$//g' }
>
> cmd_grep() {
>
>
>
> _______________________________________________ Password-Store
> mailing list Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
>
More information about the Password-Store
mailing list