Skip to content

Conversation

@montag451
Copy link
Contributor

@montag451 montag451 commented Jan 29, 2023

The current way of checking if a process is a Bash process is not correct particularly with remote Bash processes. For example if the user shell on the local machine is zsh then shell-file-name will be equal to zsh and bash-completion--current-shell will return nil for a remote Bash process (assuming explicit-shell-file-name is nil and the ESHELL environment variable is not set). The new way of checking if a process is a Bash process is more robust as it is not based on the checking of the explicit-shell-file-name variable, the ESHELL environment variable, the shell-file-name variable or the local command used to launch the Bash process.

@montag451 montag451 force-pushed the bash-process-detection branch from c2196fc to f92736d Compare January 29, 2023 18:19
The current way of checking if a process is a Bash process is not
correct particularly with remote Bash processes. For example if the
user shell on the local machine is zsh then `shell-file-name' will be
equal to zsh and `bash-completion--current-shell' will return nil for
a remote Bash process (assuming `explicit-shell-file-name' is nil and
the ESHELL environment variable is not set). The new way of checking
if a process is a Bash process is more robust as it is not based on
the checking of the `explicit-shell-file-name' variable, the ESHELL
environment variable, the `shell-file-name' variable or the local
command used to launch the Bash process.
@montag451 montag451 force-pushed the bash-process-detection branch from f92736d to 08c4bca Compare January 29, 2023 21:25
@szermatt szermatt merged commit ffb3f88 into szermatt:master Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants