You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Julio Carlos Barrera (JIRA)" <ji...@apache.org> on 2013/11/14 12:19:21 UTC

[jira] [Updated] (KARAF-2588) double escaped path slashes in session variables using shell

     [ https://issues.apache.org/jira/browse/KARAF-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julio Carlos Barrera updated KARAF-2588:
----------------------------------------

    Description: 
In previous versions, like Karaf 2.2.2 ZIP release I could use paths as session variables using Karaf shell:

{noformat}scripts.path=C:\\data
C:\data{noformat}

But now, using Karaf 2.2.11 I need to double escape slashes to obtain the same behaviour:

{noformat}scripts.path=C:\\data
C:data{noformat}
vs
{noformat}scripts.path=C:\\\\data
C:\data{noformat}

I don't know in which version between 2.2.2 and 2.2.11 it has changed. Why did this behaviour change? I have a lot of Karaf scripts that I need to edit adding these double-escaped paths.

  was:
In previous versions, like Karaf 2.2.2 ZIP release I could use paths as session variables using Karaf shell:

{noformat}scripts.path=C:\\data
C:\data{noformat}

But now, using Karaf 2.2.11 I need to double escape slashes to obtain the same behaviour:

{noformat}scripts.path=C:\\data
C:data{noformat}
vs
{noformat}scripts.path=C:\\\\data
C:\data{noformat}

I don't know in which version between 2.2.2 and 2.2.11 it has changed. Why did this behaviour change? I have a lot of Karaf scripts that I need to edit adding this double-escaped paths.


> double escaped path slashes in session variables using shell
> ------------------------------------------------------------
>
>                 Key: KARAF-2588
>                 URL: https://issues.apache.org/jira/browse/KARAF-2588
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 2.2.11
>         Environment: Windows 7 64 bits
> Karaf 2.2.11 ZIP release
> Windows cmd.exe
>            Reporter: Julio Carlos Barrera
>            Priority: Minor
>              Labels: karaf, karaf-shell, session-variable, windows
>
> In previous versions, like Karaf 2.2.2 ZIP release I could use paths as session variables using Karaf shell:
> {noformat}scripts.path=C:\\data
> C:\data{noformat}
> But now, using Karaf 2.2.11 I need to double escape slashes to obtain the same behaviour:
> {noformat}scripts.path=C:\\data
> C:data{noformat}
> vs
> {noformat}scripts.path=C:\\\\data
> C:\data{noformat}
> I don't know in which version between 2.2.2 and 2.2.11 it has changed. Why did this behaviour change? I have a lot of Karaf scripts that I need to edit adding these double-escaped paths.



--
This message was sent by Atlassian JIRA
(v6.1#6144)