Skip to content

Conversation

@pitrou
Copy link
Contributor

@pitrou pitrou commented Dec 3, 2025

Running chronos/manager.py would emit a Python syntax warning as \$ is not a recognized escape sequence in Python:

/home/antoine/oss-fuzz/infra/experimental/chronos/manager.py:76: SyntaxWarning: invalid escape sequence '\$'
  ('"export PATH=/ccache/bin:\$PATH && python3.11 -m pip install -r /chronos/requirements.txt && '
/home/antoine/oss-fuzz/infra/experimental/chronos/manager.py:77: SyntaxWarning: invalid escape sequence '\$'
  'rm -rf /out/* && compile && cp -n /usr/local/bin/replay_build.sh \$SRC/"'

Make sure that Python does not try to unescape it, as it is intended as a shell escape sequence here.

Running `chronos/manager.py` would emit a Python syntax warning as `\$` is not a recognized escape sequence in Python:
```
/home/antoine/oss-fuzz/infra/experimental/chronos/manager.py:76: SyntaxWarning: invalid escape sequence '\$'
  ('"export PATH=/ccache/bin:\$PATH && python3.11 -m pip install -r /chronos/requirements.txt && '
/home/antoine/oss-fuzz/infra/experimental/chronos/manager.py:77: SyntaxWarning: invalid escape sequence '\$'
  'rm -rf /out/* && compile && cp -n /usr/local/bin/replay_build.sh \$SRC/"'
```

Make sure that Python does not try to unescape it, as it is intended as a shell escape sequence here.
@pitrou
Copy link
Contributor Author

pitrou commented Dec 3, 2025

@DavidKorczynski

@DavidKorczynski
Copy link
Collaborator

let's land this one first #14313 as I assume some of this may be resolved in that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants