How to pass an escape slash to subprocess.run
How to pass an escape slash to subprocess.run Question: Trying to run command this from a Python script: gh api "/search/code?q=somecode" –jq ".items[] | { "file": .path, "repo": .repository["full_name"] } " by way of: output = subprocess.run( [ ‘gh’, f’api "/search/code?q={CODE}"’, ‘–jq ".items[] | {{ "file": .path, "repo": .repository[{}] }} "’.format(‘\"full_name\"’) ]) to no avail. …