Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preexec is called when exiting bash with Ctrl-D #111

Closed
dseomn opened this issue Aug 22, 2020 · 2 comments
Closed

Preexec is called when exiting bash with Ctrl-D #111

dseomn opened this issue Aug 22, 2020 · 2 comments

Comments

@dseomn
Copy link
Contributor

dseomn commented Aug 22, 2020

Possibly related to #104 but I'm not sure. With bash-preexec 0.4.0 and bash 5.0.18(1)-release, the preexec function is called with the last command when exiting bash with Ctrl-D:

dseomn@solaria:~$ preexec() { echo preexec "$@"; }
dseomn@solaria:~$ echo hi
preexec echo hi
hi                
dseomn@solaria:~$ 
logout         
preexec echo hi
@rcaloras
Copy link
Owner

@dseomn any chance you can test this on 0.3.7 or earlier? Could be the same as #27

@dseomn
Copy link
Contributor Author

dseomn commented Aug 22, 2020

Huh, same behavior in 0.3.7. I guess I just never noticed it before. Removing my ~/.bash_logout fixes the problem, so this is almost definitely a duplicate of #27.

@dseomn dseomn closed this as completed Aug 22, 2020
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

No branches or pull requests

2 participants