Skip to content

Commit

Permalink
sesh: Don't pass empty spaces as an argument to next process
Browse files Browse the repository at this point in the history
  • Loading branch information
sysheap committed Jan 6, 2025
1 parent 7649212 commit 7b968b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/src/bin/sesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn parse_command_and_execute(mut command: String) {

sys_execute_arg_clear();

for arg in split.iter().skip(1) {
for arg in split.iter().skip(1).filter(|arg| !arg.trim().is_empty()) {
sys_execute_add_arg(arg).expect("Succeed");
}

Expand Down

0 comments on commit 7b968b8

Please sign in to comment.