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

Dahlberg, David david.dahlberg at fkie.fraunhofer.de
Tue Aug 18 09:05:31 CEST 2015


Am Dienstag, den 18.08.2015, 02:12 +0200 schrieb l-m-h at web.de:
> I'm happy about
> any
> feedback or critics.

The diff makes pass even more GNU-only. Until now, grep needs to support
the non-POSIX[1] --color option. With the patch, it also relies on -H
and --label.

While I can patch the --color out without much of a problem, I fear
complications might arise with --label as this changes the textual
output if missing and future functions might rely on the exact string.
(You're using scripting as an argument yourself).

Would it be possible to replace --label/-H with cut/echo or sed?








[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html


-- 
David Dahlberg     

Fraunhofer FKIE, Dept. Communication Systems (KOM) | Tel: +49-228-9435-845
Fraunhoferstr. 20, 53343 Wachtberg, Germany        | Fax: +49-228-856277


More information about the Password-Store mailing list