cat(1): fixed files not reading to output

This commit is contained in:
2024-01-01 14:35:37 -07:00
parent 3e555542b6
commit 5c82375ff6
+1 -1
View File
@@ -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;