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
{{ message }}
Repository navigation
_BOUND_IN_CONDITION Reads an Ordinary Command Flag as an Arithmetic Guard #1636
The -(?:lt|le|gt|ge)\b alternative is matched against the whole condition text rather than against a test-builtin invocation, so any command flag spelling one of those pairs reads as a bound.
Allowed today:
while! ls -lt out | grep -q result;do sleep 30;donewhile! grep -le done log;do sleep 30;done
ls -lt is an everyday flag pair, which makes this reachable without anyone trying.
The pattern needs to require the operator to sit inside a test or [ invocation, or inside [[ ]], rather than anywhere in the condition. Present since requirement 7 shipped in #1622. Found by a local strict review pass on #1632.
Activity
Credit a Comparison Bound Only Inside a Test Invocation (#1999)
Promote develop to main: Narrow the Wait-Loop Bound and Harden Review…