Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
TIG 2017-09-11
Description
There are still some cases where the "shell" remote operation fails to pass the parameters properly to a remote script. The best way to handle this is as follows:
- Run all shell operations through bash -c "<commands>"
- If <commands> has any quotes, singe ' or double ", then escape them and surround the commands with a $'<commands>'
Example:
The command /tmp/a.sh -a abc -b "hi there" -c "also here" should be invoked as /bin/bash -c "$'/tmp/a.sh -a abc -b \"hi there\" -c \"also here\"'"