Skip to content

Commit

Permalink
Fix regex in shell redirection from (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc authored Jul 29, 2023
1 parent 2a5da4a commit eab33dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ fn exec_with_config(cmd: &str, config: &mut Config) -> Result<(), ExitCode> {
// read foo.txt [1]=>[3]
is_fat_arrow = true;
left_handle = 1;
} else if Regex::new("^+<=*$").is_match(args[i]) { // Redirections from
} else if Regex::new("^<=*$").is_match(args[i]) { // Redirections from
// write bar.txt <== foo.txt
// write bar.txt <= foo.txt
// write bar.txt < foo.txt
Expand Down

0 comments on commit eab33dc

Please sign in to comment.