Repository navigation
Commit bac1368
committed
🐛 Restore the
Two corrections to the standard-input run, keeping every accepted behavior of
8225eac.
`-` is the one filename configliere's option grammar leaves unwritable, and the
reference grammar reaches it again: bare `xmd -` executes the file named `-`
through the shorthand run profile, and `xmd run -#Section` executes that file's
`Section`. Both leave supplied standard input unread. The document argument is
read from the parser's own unconsumed remainder and admitted only when its
reference path is exactly `-`, so a mistyped option is still an option and a run
written with one refuses for want of a root. `xmd run -` and `xmd run -- -`
remain the only spellings that read standard input, and options written on
either side of every form still apply.
The stdin-capable launcher now owns its child's exit. Teardown is registered
before the operation can suspend, terminates the owned process group, escalates
to SIGKILL when the group has not closed within the grace period, and returns
only once the child's own `close` boundary has been reached — a signal that has
been sent is not a process that is gone. Captured output, exit status,
environment, the run deadline and write-then-EOF are unchanged.
IE29 and IE30 now require a successful run and assert the exact file and
selected-section markers while a distinct stdin marker stays absent; SI12 proves
the teardown boundary through the stdin-enabled runCli path.- file reference and reap the launched child (#723)1 parent 8225eac commit bac1368
7 files changed
Lines changed: 299 additions & 96 deletions
File tree
- packages
- cli
- src
- tests
- test-support
- site/routes/docs
- specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2764 | 2764 | | |
2765 | 2765 | | |
2766 | 2766 | | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
2767 | 2774 | | |
2768 | 2775 | | |
2769 | 2776 | | |
| |||
3837 | 3844 | | |
3838 | 3845 | | |
3839 | 3846 | | |
3840 | | - | |
| 3847 | + | |
3841 | 3848 | | |
3842 | 3849 | | |
3843 | 3850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1589 | 1602 | | |
1590 | | - | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1591 | 1615 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1616 | + | |
| 1617 | + | |
1598 | 1618 | | |
1599 | | - | |
| 1619 | + | |
1600 | 1620 | | |
1601 | | - | |
1602 | | - | |
| 1621 | + | |
| 1622 | + | |
1603 | 1623 | | |
1604 | 1624 | | |
1605 | 1625 | | |
1606 | 1626 | | |
1607 | 1627 | | |
1608 | 1628 | | |
1609 | | - | |
| 1629 | + | |
1610 | 1630 | | |
1611 | 1631 | | |
1612 | 1632 | | |
| |||
1658 | 1678 | | |
1659 | 1679 | | |
1660 | 1680 | | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1670 | 1695 | | |
1671 | 1696 | | |
1672 | 1697 | | |
1673 | 1698 | | |
1674 | | - | |
| 1699 | + | |
1675 | 1700 | | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1676 | 1704 | | |
1677 | 1705 | | |
1678 | 1706 | | |
| |||
2109 | 2137 | | |
2110 | 2138 | | |
2111 | 2139 | | |
2112 | | - | |
2113 | | - | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
2114 | 2143 | | |
2115 | 2144 | | |
2116 | 2145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 303 | + | |
| 304 | + | |
307 | 305 | | |
308 | | - | |
309 | | - | |
| 306 | + | |
| 307 | + | |
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | 311 | | |
314 | 312 | | |
315 | | - | |
| 313 | + | |
| 314 | + | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
319 | | - | |
320 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
321 | 332 | | |
322 | 333 | | |
323 | 334 | | |
324 | 335 | | |
325 | 336 | | |
326 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
327 | 342 | | |
328 | 343 | | |
329 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
411 | 458 | | |
412 | 459 | | |
413 | 460 | | |
| |||
590 | 637 | | |
591 | 638 | | |
592 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
0 commit comments