-
Notifications
You must be signed in to change notification settings - Fork 219
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
Standard escape character (\) doesn't seems to be handled correctly. #798
Milestone
Comments
I dug into this a bit more and found a few things:
|
Ok, I think I found a workaround. It consists of 2 pieces
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm using a modified version of the picocli.shell.jline3.example.Example class (see https://github.com/remkop/picocli/blob/main/picocli-shell-jline3/README.md) in which I've added an Echo command to test string arguments.
My modification is to add an echo method to the Nested class:
As long as there's no space is WAI:
But if I try to add an escaped space character it gets an error:
Upon further digging, I added a println between the reader.readLine and the execute:
When I do that I see
So it seems that readLine has removed the escape character.
So I try double-escaping it:
But now echo prints "foo\ bar".
I see similar issues when trying to escape quotes:
The text was updated successfully, but these errors were encountered: