Files
mopac-pmo/logs/q-queue-next.sh.log
T

2 lines
569 B
Plaintext

On-disk script matches the paste — it has an argument-indexing bug: `i=0` makes the first "task" `${!0}` (the script itself), and with the post-increment, the condition `-lt $#` drops the last argument. Minimal fix is two characters:Fixed. Two off-by-one bugs on lines 6-7: `i=0` dispatched the script itself as a task (visible in `queue.status` as `RUN queue-next.sh`), and `-lt $#` with the post-increment skipped the final task file. Changed to `i=1` / `-le $#`; verified syntax and that the DEFER decrement (`i=$((i-1)); continue`) still re-queues the same task.