Suggests installing RCS when it can't open an editor
When I commit a file, I get the following message:
$ src commit somefile.txt
/bin/sh: emacsclient: command not found
src: 'emacsclient /tmp/srcyekmwfmutmp' returned 127.
You probably need to install RCS.
The problem isn't that RCS isn't installed, it is installed:
$ which rcs
/usr/bin/rcs
The problem appears to be that it can't open an editor to ask for a message and it defaults to emacsclient
which isn't installed.
A better help message for this situation would be:
Could not launch a text editor with the command
emacsclient
. You could:
- Set the
EDITOR
environment variable to specify a different editor of your choice- Specify a commit message on the command line with
-m "my message"
- Install
emacsclient
I would also like it to test if emacsclient
is installed before defaulting to it. It would be nice to test if nano
, or vi
were in the path and use one of them in that case.
Reported against
src: 1.26
python: 3.8.10
RCS: 5.9.4
platform: linux
revision: b'801e57930478c3f488a55af52ad7d7d076d13ec9\n'
Edited by Stephen Ostermiller