[pass] [PATCH 0/3] Change output format of `pass grep`

Lucas Hoffmann l-m-h at web.de
Tue Aug 18 11:32:42 CEST 2015

On Tue, Aug 18, 2015 at 11:11:37AM +0200, Lucas Hoffmann wrote:
> On Tue, Aug 18, 2015 at 07:05:31AM +0000, Dahlberg, David wrote:
> > Would it be possible to replace --label/-H with cut/echo or sed?
> I think it is possible to implement the --label stuff with a pipeline.
> But I am currently thinking about a different approach:  If GNU grep is
> available we can set some default options including color and label and
> if it is not available we can fall back to some default options that
> work with POSIX grep.  This way we do not reimplement features of GNU
> grep in pass.  And every user will get a "sane" default behaviour
> corresponding to the feature set of the available grep.
> I think this should be done with the platform mechanisms that pass
> already uses.  But I have to understand them first before I can send the
> patch.  I hope to do it soon though.

Ok, the platform mechanisms is easier to understand than I thought.
Attached is a small patch (not yet to be commited).  Please do send me
suggestions of options and GREP_TYPE that you might want to see in
different platform files.  I will then prepare and send a full commit.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150818/80616306/attachment.asc>

More information about the Password-Store mailing list