Issue Type: Bug Bug
Assignee: Unassigned
Components: xshell-plugin
Created: 01/Dec/14 3:31 PM
Description:

With X-shell, you should be able to use either DOS-style environment variables (i.e. %VARIABLE%), or Unix style variables ($VARIABLE, or with braces: ${VARIABLE}, and both styles should work on either platform. If two Unix variables are to be used concatenated together (i.e. not space separated) then braces must be used, as in:" ${VARIABLE_1}_${VARIABLE2}. The equivalent of this in DOS is %VARIABLE_1%_%VARIABLE_2%.

The issue is: When two non-space separated variables are specified in an X-shell commandline using the DOS-style variable specification (%XXX%, they should be converted to Unix format by the use of braces, but they are not, and so they do not get substituted properly on UNIX.

Test case:

1) the following Unix-style non-space separated variables work properly with X-shell on both Windows or Unix:

Command as given to X-shell:
echo doing Unix-style variables separate $Generation $Component $Stream and together with braces ${Generation}_${Component}_${Stream}.log

Results - all variables whether space separated or not get substituted:

doing Unix-style variables separate generation_x component_x stream_x and together with braces generation_x_component_x_stream_x.log

2) the following DOS-style non-space separated variables do NOT work properly with X-shell on Unix (work only on DOS)

Command:
echo doing DOS-style variables separate %Generation% %Component% %Stream% and together %Generation%%Component%%Stream%.log

Results - all variables do not get substituted on UNIX (DOS okay):

doing DOS-style variables separate generation_x component_x stream_x and together $Generation_$Component_stream_x.log

Environment: Windows/Unix
Project: Jenkins
Priority: Major Major
Reporter: Rick Patterson
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to