Implemented the exec builtin

Fixed readline and terminal interactions using stdin instead of /dev/tty
This commit is contained in:
2026-02-20 12:17:48 -05:00
parent 9b8c8d704b
commit 88c0945e47
16 changed files with 384 additions and 41 deletions

View File

@@ -824,7 +824,7 @@ impl LineBuf {
dir: Direction,
) -> Box<dyn Iterator<Item = usize>> {
self.update_graphemes_lazy();
let skip = if pos == 0 { 0 } else { pos + 1 };
let skip = pos + 1;
match dir {
Direction::Forward => Box::new(self.grapheme_indices().to_vec().into_iter().skip(skip))
as Box<dyn Iterator<Item = usize>>,