4e8641a1
test: the third backticked word inside an unquoted heredoc
a73x 2026-09-04 10:16
Commit message
test/e2e_10_agent.sh
| Old | New | ||
|---|---|---|---|
| @@ -448,13 +448,20 @@ expect $FPA 20000 | |||
| 448 | send echo flip-now\n | 448 | send echo flip-now\n |
| 449 | expect $FPB 25000 | 449 | expect $FPB 25000 |
| 450 | send exit\n | 450 | send exit\n |
| 451 | # Empty wall, then the picker: see the first agent leg — and `expect` on | 451 | # Empty wall, then the picker: see the first agent leg, and an expect verb |
| 452 | # the popup's own legend, never a settle. The picker opens on the host | 452 | # on the popup's own legend, never a settle. The picker opens on the host |
| 453 | # POLL (up to a second after the last session dies) while a settle fires a | 453 | # POLL (up to a second after the last session dies) while a settle fires a |
| 454 | # fixed time after the last output byte; a picker that opened between the | 454 | # fixed time after the last output byte; a picker that opened between the |
| 455 | # settle and the `\x1b` would eat the `d` that follows (every byte is the | 455 | # settle and the Esc would eat the d that follows (every byte is the |
| 456 | # popup's while it is up) and this leg would fail at waitexit on a change | 456 | # popup's while it is up) and this leg would fail at waitexit on a change |
| 457 | # nobody made. | 457 | # nobody made. |
| 458 | # | ||
| 459 | # No backticks below the heredoc opener, comments included, for the reason | ||
| 460 | # written above the first agent leg's script: in an unquoted heredoc the | ||
| 461 | # shell runs a backquoted word as a command substitution wherever it | ||
| 462 | # stands, and this comment used to quote the expect verb that way. There is | ||
| 463 | # an expect program on macOS, so the shell started it, it read the rest of | ||
| 464 | # the heredoc as its own script, and the gate hung for its whole budget. | ||
| 458 | expect c new session 20000 | 465 | expect c new session 20000 |
| 459 | send \x1b | 466 | send \x1b |
| 460 | settle 300 20000 | 467 | settle 300 20000 |