[DRE-maint] Bug#1103255: /usr/bin/rails: No $EDITOR to open file in. Assign one like this: EDITOR="mate --wait" bin/rails credentials:edit
Antonio Terceiro
terceiro at debian.org
Tue Apr 15 19:20:02 BST 2025
Control: severity -1 normal
On Tue, Apr 15, 2025 at 07:33:09PM +0200, наб wrote:
> Package: ruby-railties
> Version: 2:6.1.7.10+dfsg-1~deb12u1
> Severity: serious
> Justification: Policy 11.4
> File: /usr/bin/rails
>
> Dear Maintainer,
>
> I just got
> $ rails credentials:edit
> No $EDITOR to open file in. Assign one like this:
>
> EDITOR="mate --wait" bin/rails credentials:edit
>
> For editors that fork and exit immediately, it's important to pass a wait flag,
> otherwise the credentials will be saved immediately with no chance to edit.
>
> Quoth Policy 11.4:
> > Thus, every program that launches an editor or pager must use the
> > EDITOR or PAGER environment variable to determine the editor or
> > pager the user wishes to use. If these variables are not set, the
> > programs /usr/bin/editor and /usr/bin/pager should be used,
> > respectively. These commands may be invoked explicitly (e.g., as
> > /usr/bin/editor) or via a PATH search (e.g., as editor).
Thanks for your bug report. This is an interesting issue.
However, not following a "should" directive in policy is not really a
serious bug.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250415/fe59b459/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list