Repository navigation
Commit ecf397e
fix(agent): let pushd and popd move the walk the way they move the shell
`pushd ..; cat outside.txt` read the file. The walk asked whether a segment's
first word was `cd`, so the builtin that moves the shell exactly as far, and
is on every interactive user's fingers, stepped over the fence untouched.
Its destination is now checked the same way `cd`'s is.
The stack is what the walk cannot follow. `popd` and a bare `pushd` take
their destination from entries an earlier push put there, and each of those
was cleared on the way in, so the shallowest place either can land is where
the command began. The walk adds that place rather than guessing which one,
which is the same answer a separator that proves nothing already gets.
Co-authored-by: Claude (claude-opus-5[1m]) <noreply@anthropic.com>1 parent a131dd1 commit ecf397e
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
| |||
490 | 496 | | |
491 | 497 | | |
492 | 498 | | |
493 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
494 | 506 | | |
495 | 507 | | |
496 | 508 | | |
| |||
503 | 515 | | |
504 | 516 | | |
505 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
506 | 524 | | |
507 | 525 | | |
508 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
737 | 761 | | |
738 | 762 | | |
739 | 763 | | |
| |||
0 commit comments