You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/09/26 07:44:04 UTC
[jira] [Commented] (KARAF-4017) Values like "2d" or "2f" when typed
in shell are being considered as doubles or floats
[ https://issues.apache.org/jira/browse/KARAF-4017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909109#comment-14909109 ]
Jean-Baptiste Onofré commented on KARAF-4017:
---------------------------------------------
If you want the "string", you have to explicitely use the " character around.
> Values like "2d" or "2f" when typed in shell are being considered as doubles or floats
> --------------------------------------------------------------------------------------
>
> Key: KARAF-4017
> URL: https://issues.apache.org/jira/browse/KARAF-4017
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 3.0.3
> Reporter: Oleksandr Kochniev
> Priority: Minor
>
> # Open karaf console
> # Execute {code}echo 2f{code}
> OR
> {code}echo 2d{code}
> # Observe the output
> *Actual Result:*
> Values like "2d" or "2f" when typed in shell are being considered as doubles or floats
> {code}
> 2.0
> {code}
> *Expected Result:*
> {code}
> 2d
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)