cat should exit normally if reading from stdin

This commit is contained in:
Rui Ueyama 2020-03-11 16:05:43 +09:00
parent 9ead904afe
commit 4cf0b0973e

View file

@ -28,7 +28,7 @@ main(int argc, char *argv[])
if(argc <= 1){
cat(0);
exit(1);
exit(0);
}
for(i = 1; i < argc; i++){