You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guard's lexer does not model bash's ANSI-C quoting, $'...'. It reads $' as a $ followed by an ordinary single quote, so a loop written as an ANSI-C quoted payload is never read as one.
Reproduce (constructed)
Both are allowed on develop, and both loop under timeout 3 bash -c until the timeout kills them:
bash -c $'until false; do sleep 1; done'eval$'until false; do sleep 1; done'
The second form needs the #2080 change, which reads an eval's arguments, to be reached at all.
Done looks like
An ANSI-C quoted word is unescaped the way bash unescapes it before it is read as a payload, both commands above are denied, and self-test rows pin them.
Found by the local strict review of the #2080 branch. It predates that branch.
Closed: Folded into #1959 per #2517, approved by the maintainer. This is a case of the guard's lexer splitting a command differently from bash, and #1959's single bash-aware scanner fixes the class, with this shape kept as a self-test row there.
Activity
ptr727 commentedon Oct 8, 2026
Closed: Folded into #1959 per #2517, approved by the maintainer. This is a case of the guard's lexer splitting a command differently from bash, and #1959's single bash-aware scanner fixes the class, with this shape kept as a self-test row there.