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