def _normalize_cmd_args(cmd):
if isinstance(cmd, basestring):<EOL><INDENT>if cmd.find("<STR_LIT>") > <NUM_LIT:0> or cmd.find("<STR_LIT>") or cmd.find("<STR_LIT>"):<EOL><INDENT>return "<STR_LIT>" + cmd, True, find_bash()<EOL><DEDENT>else:<EOL><INDENT>return cmd, True, None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return [str(x) for x in cmd], False, None<EOL><DEDENT>
Normalize subprocess arguments to handle list commands, string and pipes.
    Piped commands set pipefail and require use of bash to help with debugging
    intermediate errors.