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

Fix history uncluttering when Bash version is >= 5.1 #57

Merged
merged 1 commit into from
Jan 15, 2023

Conversation

montag451
Copy link
Contributor

Since Bash version 5.1, the behaviour of HISTCMD has been changed and it breaks history uncluttering. This commit solves this problem by checking the Bash major version and by using the appropriate command to unclutter the history.

Since Bash version 5.1, the behaviour of HISTCMD has been changed and
it breaks history uncluttering. This commit solves this problem by
checking the Bash major version and by using the appropriate command
to unclutter the history.
@montag451
Copy link
Contributor Author

I have no clue why the CI tests are failing. On my machine I tested my changes against Bash 4.4, Bash 5.0, Bash 5.1 and Bash 5.2 and it works fine (the current version of emacs-bash-completion fails with Bash 5.1 and 5.2)

@szermatt
Copy link
Owner

Thank you for the patch! I'll try it out!

The CI tests failing have nothing to do with the patch. It looks like the CI is broken. I'm having a look.

@szermatt
Copy link
Owner

I tested manually and everything looks fine. Again, thank you for the fix!

I'm going to merge this change and fix the Cl afterwards.

@szermatt szermatt merged commit ba2f7e9 into szermatt:master Jan 15, 2023
@montag451
Copy link
Contributor Author

Thx for your quick merge and for this wonderful package!

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.

None yet

2 participants