Archived
2
0

cat(1): fixed files not reading to output

This commit is contained in:
Emma Tebibyte 2022-12-12 18:58:07 -05:00
parent 3e555542b6
commit 5c82375ff6

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;