[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: missing bash in /usr/bin seems to cause auctex to break on buffer in
From: |
Tassilo Horn |
Subject: |
Re: missing bash in /usr/bin seems to cause auctex to break on buffer initialization |
Date: |
Fri, 26 Jun 2020 21:00:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
jfbu <jfbu@free.fr> writes:
Hi Jean-François,
> On trying to open any .tex file I hit against
>
> Debugger entered--Lisp error: (file-error "Searching for program" "Aucun
> fichier ou dossier de ce type" "/usr/bin/bash")
> call-process("/usr/bin/bash" nil t nil "-c" "atril --help")
> apply(call-process "/usr/bin/bash" nil t nil ("-c" "atril --help"))
> process-file("/usr/bin/bash" nil t nil "-c" "atril --help")
> shell-command-to-string("atril --help")
> TeX-view-program-select-evince("mate" "atril")
>
> And indeed I don't have /usr/bin/bash but I see only /bin/bash
This has nothing to do with AUCTeX but it seems that your emacs has a
wrong `shell-file-name'. The docs state:
--8<---------------cut here---------------start------------->8---
shell-file-name is a variable defined in ‘C source code’.
Its value is "/usr/bin/fish"
Original value was "/bin/bash"
Documentation:
File name to load inferior shells from.
Initialized from the SHELL environment variable, or to a system-dependent
default if SHELL is unset. See Info node ‘(elisp)Security Considerations’.
--8<---------------cut here---------------end--------------->8---
As far as I can see in Emacs's callproc.c, the default value for
`shell-file-name' is the value of the SHELL environment variable or
/bin/sh if SHELL is not set. So I would conclude that either your SHELL
environment variable is already wrong or that `shell-file-name' is
explicitly set in your ~/.emacs (or somewhere else that gets loaded).
Bye,
Tassilo