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

Use GNU history expansion instead of our own? #47

Open
hanslub42 opened this issue Jul 24, 2016 · 1 comment
Open

Use GNU history expansion instead of our own? #47

hanslub42 opened this issue Jul 24, 2016 · 1 comment
Labels

Comments

@hanslub42
Copy link
Owner

hanslub42 commented Jul 24, 2016

The GNU history library (used by rlwrap) has extensive support for bash-style history expansion. rlwrap has only a homegrown simple version of it, where !word at the beginning of an input line expands to the last command that started with word.

Should rlwrap switch to the more fancy version?

  • Pro: simple to implement, much more versatile and powerful than the current expansion.
  • Contra: a lot more intrusive. We certainly need an option (or environment variable) to switch it off.
@hanslub42 hanslub42 changed the title Use GNU history's history expansion instead of our own !word expansion? Use GNU history's history expansion instead of our own? Jul 24, 2016
@hanslub42 hanslub42 changed the title Use GNU history's history expansion instead of our own? Use GNU history expansion instead of our own? Jul 24, 2016
@hokuda
Copy link
Contributor

hokuda commented Jul 25, 2016

Supporting the full features of the GNU history library is a good idea. I'd like to use !! and !-n, the other features are too deep for me though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants