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).