Forum: CFEngine Help
Subject: make a string from a list
Author: tuibelgium
Link to topic: https://cfengine.com/forum/read.php?3,25977,25977#msg-25977
I want to pass a list as options for a command:
example:
@{options} is a list: ("option_a","option_b","option_c")
Now I want to execute a command like this
command:
"/bin/command"
args => "option_a option_b option_c"
The list is dynamically generated so it's not an option to define ${options}
directly as one string.
Is their a way to do this?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine