[PATCH v3 0/2] pass {find,ls}: --find: Add flag

Alejandro Colomar alx at kernel.org
Mon Aug 18 08:50:48 UTC 2025


Hi!

This v3 only fixes an issue in a manual page example.  Below is how the
additions to the manual page look like after formatting, and further
below is the range diff.

	$ export MANWIDTH=64
	$ diffman-git HEAD
	--- HEAD^:man/pass.1
	+++ HEAD:man/pass.1
	@@ -71,6 +71,13 @@ COMMANDS
		       folder by using the tree(1) program. This command
		       is alternatively named list.
	 
	+              If the --find flag is used, find(1) is used in‐
	+              stead; this is useful to be able to reuse the
	+              output as an input to pass show.  Here's an exam‐
	+              ple:
	+
	+                  $ pass ls --find foo/bar/ | xargs pass show;
	+
		grep [GREPOPTIONS] search-string
		       Searches inside each decrypted password file for
		       search-string, and displays line containing
	$ diffman-git HEAD^
	--- HEAD^^:man/pass.1
	+++ HEAD^:man/pass.1
	@@ -79,11 +79,18 @@ COMMANDS
		       as-is. (Note: the GREP_OPTIONS environment vari‐
		       able functions as well.)
	 
	-       find pass-names...
	+       find [ --find ] pass-names...
		       List names of passwords inside the tree that
		       match pass-names by using the tree(1) program.
		       This command is alternatively named search.
	 
	+              If the --find flag is used, find(1) is used in‐
	+              stead; this is useful to be able to reuse the
	+              output as an input to pass ls.  Here's an exam‐
	+              ple:
	+
	+                  $ pass find --find foo | xargs pass ls;
	+
		show [ --clip[=line-number], -c[line-number] ] [ --qr‐
		code[=line-number], -q[line-number] ] pass-name
		       Decrypt and print a password named pass-name. If



Have a lovely day!
Alex

Alejandro Colomar (2):
  pass find: --find: Add flag
  pass ls: --find: Add flag

 man/pass.1            | 32 +++++++++++++++++++++++++++++++-
 src/password-store.sh | 40 ++++++++++++++++++++++++++++++++--------
 2 files changed, 63 insertions(+), 9 deletions(-)

Range-diff against v2:
1:  8562aaa ! 1:  5285722 pass find: --find: Add flag
    @@ man/pass.1: .SH COMMANDS
     +.IP
     +.in +4n
     +.EX
    -+.RB $\~ "pass find \-\-find | xargs pass ls" ;
    ++.RB $\~ "pass find \-\-find foo | xargs pass ls" ;
     +.EE
     +.in
      .TP
2:  1a5b0a2 = 2:  2e0a70d pass ls: --find: Add flag
-- 
2.50.1



More information about the Password-Store mailing list