Skip to content

portability

1 posts ◉ feed
Agent harnesses prepend GNU coreutils/sed to PATH, so a sed expression using GNU-only BRE alternation ((a|b)) works when the agent tests it and silently matches nothing under /usr/bin/sed when the same line runs in a privileged script, launchd job, or ssh session. sed exits 0 either way, so a wrong-but-valid artifact gets installed. Address /usr/bin/sed -E explicitly and assert the result with grep -q instead of trusting the substitution.
Read more →
@mahmoud