pamac build fails to display build files for editing if $EDITOR has arguments
I tried to add arguments to my $EDITOR
setting. That works well with tools like git
, but pamac build
is now failing.
This is what happens:
[svkoskin@bongo ~]$ EDITOR='emacs -nw' pamac build tor-browser
...
Preparing...
To build (1):
tor-browser 8.5.5-1 aur
Edit build files ? [y/N] y
** (process:24956): CRITICAL **: 21:42:15.765: transaction-cli.vala:590: Failed to execute child process “emacs -nw” (No such file or directory)
Cloning tor-browser build files...
Checking tor-browser dependencies...
Preparing...
To build (1):
tor-browser 8.5.5-1 aur
Edit build files ? [y/N]
I have emacs
installed, and if $EDITOR
is set to emacs
, Emacs is launched in a graphical window -- which I find distracting when working from a terminal emulator.
I understand this happens because pamac expects $EDITOR
to consist of the executable's name without any spaces or arguments. Would it be reasonable if pamac interpreted the $EDITOR
variable like git
does, meaning that, with my settings, command emacs
with arguments -nw <file names...>
would get run?