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

Is it possible to support the exceptions "!<SPACE>", "!=" and "!<TAB>" for event designators? #240

Open
jinzha opened this issue Apr 20, 2016 · 1 comment

Comments

@jinzha
Copy link

jinzha commented Apr 20, 2016

In the link to event designators for bash Event-Designators , it says the following of !:
Start a history substitution, except when followed by a space, tab, the end of the line, ‘=’ or ‘(’ (when the extglob shell option is enabled using the shopt builtin).

Is it possible to support to these exception likes "!", "!=" and "!" to not invoke the history substitution in ConsoleReader.expandEvents()?

In our application, we use "!=" in command line, it invoke the history event designators and cause the error, so for now I have to disable the expandEvents.

@gnodet
Copy link
Member

gnodet commented May 13, 2016

This is currently not supported.
Do you want to provide a patch with a simple unit test for that ?

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