[jira] Created: (DAEMON-169) Procrun: cannot specify PATH Environement variable because of semicolon separator

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (DAEMON-169) Procrun: cannot specify PATH Environement variable because of semicolon separator

JIRA jira@apache.org
Procrun: cannot specify PATH Environement variable because of semicolon separator
---------------------------------------------------------------------------------

                 Key: DAEMON-169
                 URL: https://issues.apache.org/jira/browse/DAEMON-169
             Project: Commons Daemon
          Issue Type: Bug
          Components: Procrun
    Affects Versions: 1.0.3
         Environment: Windows XP SP3
            Reporter: Bernd Eckenfels
            Priority: Minor


When specifying a --Environment PATH=C:\Windows\system32;C:\Windows this does not work, cause it is parsed/separated by the ; char and stored into multiple lines in the Registry. Maybe using only # as a seperator is a option or perhaps adding some form of quoting or a special argument form which does not take a list of parameters.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (DAEMON-169) Procrun: cannot specify PATH Environement variable because of semicolon separator

JIRA jira@apache.org

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

Mladen Turk resolved DAEMON-169.
--------------------------------

      Assignee: Mladen Turk
    Resolution: Invalid

Just put the parameter inside single or double quotes and it won't get expanded to multiple entries
if contains ; or # separator chars.

> Procrun: cannot specify PATH Environement variable because of semicolon separator
> ---------------------------------------------------------------------------------
>
>                 Key: DAEMON-169
>                 URL: https://issues.apache.org/jira/browse/DAEMON-169
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.3
>         Environment: Windows XP SP3
>            Reporter: Bernd Eckenfels
>            Assignee: Mladen Turk
>            Priority: Minor
>
> When specifying a --Environment PATH=C:\Windows\system32;C:\Windows this does not work, cause it is parsed/separated by the ; char and stored into multiple lines in the Registry. Maybe using only # as a seperator is a option or perhaps adding some form of quoting or a special argument form which does not take a list of parameters.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (DAEMON-169) Procrun: cannot specify PATH Environement variable because of semicolon separator

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/DAEMON-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896029#action_12896029 ]

Bernd Eckenfels commented on DAEMON-169:
----------------------------------------

Thanks Mladen for the answer, I actually tried double quotes in various ways and it did not work. I could get a single line Argument with """PATH=a;b""" but in that case the quotes ended up in the registry. Using single quotes (tick) solved this problem: --Environment 'PATH=a;b'

It does not show up in the verbose logs, but I guess it is still fine.


> Procrun: cannot specify PATH Environement variable because of semicolon separator
> ---------------------------------------------------------------------------------
>
>                 Key: DAEMON-169
>                 URL: https://issues.apache.org/jira/browse/DAEMON-169
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.3
>         Environment: Windows XP SP3
>            Reporter: Bernd Eckenfels
>            Assignee: Mladen Turk
>            Priority: Minor
>
> When specifying a --Environment PATH=C:\Windows\system32;C:\Windows this does not work, cause it is parsed/separated by the ; char and stored into multiple lines in the Registry. Maybe using only # as a seperator is a option or perhaps adding some form of quoting or a special argument form which does not take a list of parameters.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.