You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found some variations in the escaping, specifically my problem is I cannot get spaces or quotes into local commands because of what appears to be automatic escaping.
This is a correctly escaped curl command that works in Commands/Scripts:
I cannot work out quotes or spaces, everything I do produces errors. Here are some curly test cases... I appologise in advance that they are not the best examples.
Testing this in the 1.6.1-snapshot. there were changes in the way things are quoted/escaped recently (1.5.x timeframe).
Note the varying contexts for the ways these steps operate.
Command: interpreted by Rundeck, variables expanded, tokens re-quoted if necessary, passed to Ant Exec task
Script: tokens expanded by Rundeck but no quoting interpreted, passed to shell
Local command: variables expanded, passed to Local Command plugin, executes in shell.
FWIW, I was able to get what I think you were trying to get working in 1.6.1-snapshot, see attached screenshot.
the Command step needs to be double-quoted. First to be treated as a single token by Rundeck, secondly because unless a Rundeck context variable is expanded in the within a token, the token is passed as-is to the shell to be interpreted, and since you want the shell to have quotes around the space characters we need a second set of quotes.
I'd like the Command step to not use the Ant Exec task eventually, it would then operate more like the Local Command plugin.
I've found some variations in the escaping, specifically my problem is I cannot get spaces or quotes into local commands because of what appears to be automatic escaping.
I cannot work out quotes or spaces, everything I do produces errors. Here are some curly test cases... I appologise in advance that they are not the best examples.
Test 1
Command:
Script:
Local command:
Test 2 - Without sending the content to dev/null
Command:
Script:
Local command:
The text was updated successfully, but these errors were encountered: