You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/09/20 13:52:00 UTC

[jira] [Comment Edited] (KARAF-5382) Karaf shell session.readLine consumes backslashes

    [ https://issues.apache.org/jira/browse/KARAF-5382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16173165#comment-16173165 ] 

Guillaume Nodet edited comment on KARAF-5382 at 9/20/17 1:51 PM:
-----------------------------------------------------------------

Your use case is exactly the one that should be handled by {{Session#readLine}}.
I think it may be easier to just create a new LineReader in this call.


was (Author: gnt):
Your use case is exactly the one that should be handled by {{Session#readLine}}.
I think it may be easier to just create a new LineReader in this call.
Would you like to propose a patch to the ConsoleSessionImpl class ?

> Karaf shell session.readLine consumes backslashes
> -------------------------------------------------
>
>                 Key: KARAF-5382
>                 URL: https://issues.apache.org/jira/browse/KARAF-5382
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>            Reporter: Tom Quarendon
>             Fix For: 4.2.0
>
>
> I don't know what the intended use case is for session.readLine, but the behaviour w.r.t backslashes is odd.
> I use is to prompt for a password from the user. So in an action, call session.readLine("prompt", '*'). However, if the user's password contains a backslash, readLine doesn't return what the user typed, which is mighty confusing. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)