Title Bug: sed substitution of __METRIC_EXTRACTION__ fails with multiline content
Issue ID 153e0ab31ffbe4bb86b6b0b2a2b697314c9bd998
Author hdh-z6MkfuXgBSe5G8U6d5NuVbvrbuXRwzYjKJWPPddXgbVjqT9n
Opened on Wed Apr 22 21:53:24 2026
Status open
Description
hdh Wed Apr 22 21:54:00 2026 f19a4ed37c1bd506204f90c08adfea95f5ccb17c
In cmd_init() (init.sh), the benchmark script is generated by sed with a multiline replacement string. The variable $metric_extraction contains newlines, and sed cannot handle multiline replacement patterns. It fails with: unescaped newline inside substitute pattern. Fix: replace sed with Python-based substitution or write the file from a heredoc.