cat(1p): formatting

This commit is contained in:
Emma Tebibyte 2023-08-14 12:08:03 -06:00
parent 3c7d4c41be
commit 6c73ffadd6
Signed by: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -116,13 +116,23 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "%s: %s: Is a directory.\n", argv[0], argv[i]); fprintf(stderr, "%s: %s: Is a directory.\n", argv[0], argv[i]);
return EX_NOINPUT; return EX_NOINPUT;
case ELOOP: case ELOOP:
fprintf(stderr, "%s: %s: Is a symbolic link loop.\n", argv[0], argv[i]); fprintf(
stderr,
"%s: %s: Is a symbolic link loop.\n",
argv[0],
argv[i]
);
return EX_UNAVAILABLE; return EX_UNAVAILABLE;
case EMFILE: case EMFILE:
fprintf(stderr, "%s: Internal error.\n", argv[0]); fprintf(stderr, "%s: Internal error.\n", argv[0]);
return EX_SOFTWARE; return EX_SOFTWARE;
case ENOENT: case ENOTDIR: case ENXIO: case ENOENT: case ENOTDIR: case ENXIO:
fprintf(stderr, "%s: %s: No such file or directory.\n", argv[0], argv[i]); fprintf(
stderr,
"%s: %s: No such file or directory.\n",
argv[0],
argv[i]
);
return EX_NOINPUT; return EX_NOINPUT;
default: default:
fprintf(stderr, "%s: Unknown error.\n", argv[0]); fprintf(stderr, "%s: Unknown error.\n", argv[0]);