Bug Report

Vasile Martiniuc mvasi90 at gmail.com
Sat Jul 4 01:09:09 CEST 2020

Good afternoon,

This line is wrong:
pass="$($GPG -d "${GPG_OPTS[@]}" "$passfile" | tail -n
+${selected_line} | head -n 1)" || exit $?

"head -n 1" (or "head -1") exits immediately after reading the first
line. And the "tail" is still writing to the pipe, but there is no
reader because "head" has exited.
It send SIGPIPE from the kernel and it exits with the status code 141.

You should not use "|| exit". The "${PIPESTATUS[@]}" is "0 141 0" and
the password is not copied to the clipboard if there are more than one
I can't copy passwords if there are more lines (10, 20, 30...).

More information about the Password-Store mailing list