diff --git a/src/main.rs b/src/main.rs index 16f716a..713e9a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,6 +22,10 @@ fn main() { let mut previous_command = None; while let Some(command) = commands.next() { + if command.is_empty() { + continue; + } + // everything after the first whitespace character is interpreted as args to the command let mut parts = command.trim().split_whitespace(); let command = parts.next().unwrap();