[pass] [PATCH] Remove verbose options for portability.

Dashamir Hoxha dashohoxha at gmail.com
Fri Feb 12 16:03:07 CET 2016

On Tue, Feb 9, 2016 at 12:08 PM, Dahlberg, David <
david.dahlberg at fkie.fraunhofer.de> wrote:

> Am Samstag, den 06.02.2016, 20:28 +0100 schrieb Jason A. Donenfeld:
> > Perhaps you could work around this by providing a platform file for
> > openbsd?
> We spoke already about this. The problem is that that those "-v" options
> are virtually everywhere and you need some kind of hook, if you want to
> modify it in the plattform.sh.
> IMHO the "$shred/$getopt" approach is useless here, since the "-v"
> modification applies to all of the following tools: cp, mv, mkdir, mv
> and rm.
> Additionally "grep --color=always".
> I'd rather suggest something like "$verbose_flag" and "$color_flag"
> which could be unset in platform.sh.

Another solution that may work, is to provide a platform file that redefines
the tools/commands that are different. For example:

function cp() {
    local opts="$@"
    # remove -v from options, if it is there
    # . . . . .
    "$(which cp)" "$opts"

Do something similar for `mv`, `mkdir`, `grep`, etc.
It may be an ugly solution, but... what can be a better alternative?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160212/7f4fee11/attachment.html>

More information about the Password-Store mailing list