Convert a list of command arguments to a properly shell-escaped string. Args: cmd_list (list): List of command arguments. Returns: str: Shell-escaped command string.
(cmd_list)
| 333 | |
| 334 | |
| 335 | def printable_shell_command(cmd_list): |
| 336 | """ |
| 337 | Convert a list of command arguments to a properly shell-escaped string. |
| 338 | |
| 339 | Args: |
| 340 | cmd_list (list): List of command arguments. |
| 341 | |
| 342 | Returns: |
| 343 | str: Shell-escaped command string. |
| 344 | """ |
| 345 | return oslex.join(cmd_list) |
no outgoing calls
no test coverage detected