[Bug 267689] security/gopass: gopass edit foo fails

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 10 Nov 2022 09:45:17 UTC

            Bug ID: 267689
           Summary: security/gopass: gopass edit foo fails
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: eduardo@FreeBSD.org
          Reporter: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(eduardo@FreeBSD.org)
          Assignee: eduardo@FreeBSD.org

gopass edit <something> fails with:

$ gopass edit foo
vi: illegal option -- i
usage: ex [-eFRrSsv] [-c command] [-t tag] [-w size] [file ...]
usage: vi [-eFlRrSv] [-c command] [-t tag] [-w size] [file ...]

Error: failed to invoke editor: failed to run vi with
/tmp/gopass-edit3702329236/secret file: exit status 1

This happens because nvi (default EDITOR) does not have an option -i.

Suboptimal workaround:

- install VIM
- EDITOR=vim gopass edit foo

A better way would be to patch internal/editor/editor.go so that -i is only
used when EDITOR is vim.

This is probably best handled upstream.

You are receiving this mail because:
You are the assignee for the bug.