cat(1): fixed files not reading to output
This commit is contained in:
parent
3e555542b6
commit
5c82375ff6
@ -62,7 +62,7 @@ fn main() -> ExitCode {
|
||||
}
|
||||
} else {
|
||||
match read_to_string(&path) {
|
||||
Ok(output) => {},
|
||||
Ok(contents) => { output.push_str(&contents) },
|
||||
Err(_) => {
|
||||
eprintln!("{}: {}: No such file or directory.", &argv0, &path);
|
||||
return ExitCode::NoInput;
|
||||
|
Reference in New Issue
Block a user