Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Nov 2022 09:45:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 267689] security/gopass: gopass edit foo fails
Message-ID:  <bug-267689-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267689

            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=3Dvim 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267689-7788>