GNU bug report logs -
#66338
30.0.50; grep-commnd set and using an old fish results in empty Copyright files
Previous Next
Reported by: Alex Schroeder <alex <at> alexschroeder.ch>
Date: Wed, 4 Oct 2023 12:53:01 UTC
Severity: normal
Found in version 30.0.50
Done: Alex Schroeder <alex <at> alexschroeder.ch>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Alex Schroeder via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
Hi Alex,
>> So Emacs expects this variable to point to a shell that Emacs can use
>> to run programs, not your interactive shell. If you want a different
>> shell to be used in interactive shell sessions, such as "M-x shell",
>> then you should use the variable explicit-shell-file-name to point to
>> that other shell (in your case, fish).
>
> I understand that this is what Emacs expects. It seems to me that other
> parts of a user’s system might go against this expectation, however. The
> man page for login(1) says this, for example:
>
> Your user and group ID will be set according to their values in
> the /etc/passwd file. The value for $HOME, $SHELL, $PATH,
> $LOGNAME, and $MAIL are set according to the appropriate fields
> in the password entry. Ulimit, umask and nice values may also be
> set according to entries in the GECOS field.
>
> That is to say, if a users runs chsh(1) and decides to use fish, then
> SHELL is set to fish, it is inherited to all processes, and Emacs
> breaks.
You could always add '(setenv "SHELL" "/bin/sh")' to your Emacs init file.
Best regards, Michael.
This bug report was last modified 1 year and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.