yac
/
coreutils
Archived
2
0
Fork 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
1 changed files with 1 additions and 1 deletions

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;