Sanitize shell arguments transform functions
-
- UpdatedAug 1, 2024
- 1 minute read
- Xanadu
- Create Workflows
Use sanitize shell arguments transform functions to remove any potentially unsafe command injections in String data pills to be used for Bash shell scripting.
Sanitize shell arguments transform functions require a String input data pill. Make sure to use the correct input data pill type when applying sanitize shell arguments transform functions. If a sanitize shell arguments transform function is applied to an improper data type, the data is not transformed at runtime and the input value is returned instead. For more information on confirming your flow runtime values, see Test a flow.
Sanitize Bash shell arguments
Returns a String free of any unsafe command injections in your Bash shell script. Wraps the input String with single quotes and escapes any existing single quotes so that you can pass the String directly to a shell function as a safe argument.
Input data pill | Output data pill |
---|---|
String | String - String with Bash shell arguments properly escaped |