Commit b6e7ba5
committed
feat(builtins): implement find -exec command execution
Closes #320. The find builtin's -exec flag was parsed but acted like
-print because the builtin lacked interpreter access. Now find -exec
is intercepted at the interpreter level (like xargs/timeout) so
commands are executed via the interpreter for each matched path.
Supports both per-file (-exec cmd {} \;) and batch (-exec cmd {} +)
modes with {} placeholder substitution.
https://claude.ai/code/session_01QbjrsMFJbHy5XfHCzA6TjM1 parent ef0c02d commit b6e7ba5
3 files changed
+467
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 298 | | |
302 | 299 | | |
303 | 300 | | |
304 | 301 | | |
305 | | - | |
| 302 | + | |
306 | 303 | | |
307 | 304 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
322 | | - | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 376 | + | |
| 377 | + | |
381 | 378 | | |
382 | 379 | | |
383 | 380 | | |
| |||
501 | 498 | | |
502 | 499 | | |
503 | 500 | | |
504 | | - | |
| 501 | + | |
505 | 502 | | |
506 | 503 | | |
507 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments