Tab completion has been implemented

more small highlighter tune ups

2>&1 style redirections now work properly
This commit is contained in:
2026-02-18 21:53:36 -05:00
parent b7c8850493
commit 7d0614943c
22 changed files with 511 additions and 188 deletions

View File

@@ -137,9 +137,7 @@ impl<R: Read> IoBuf<R> {
pub fn fill_buffer(&mut self) -> io::Result<()> {
let mut temp_buf = vec![0; 1024]; // Read in chunks
loop {
log::debug!("reading bytes");
let bytes_read = self.reader.read(&mut temp_buf)?;
log::debug!("{bytes_read:?}");
if bytes_read == 0 {
break; // EOF reached
}
@@ -220,11 +218,9 @@ impl<'e> IoFrame {
self.save();
for redir in &mut self.redirs {
let io_mode = &mut redir.io_mode;
log::debug!("{io_mode:?}");
if let IoMode::File { .. } = io_mode {
*io_mode = io_mode.clone().open_file()?;
};
log::debug!("{io_mode:?}");
let tgt_fd = io_mode.tgt_fd();
let src_fd = io_mode.src_fd();
dup2(src_fd, tgt_fd)?;