forked from bonsai/harakit
cat(1p): formatting
This commit is contained in:
parent
3c7d4c41be
commit
6c73ffadd6
14
src/cat.c
14
src/cat.c
@ -116,13 +116,23 @@ int main(int argc, char *argv[]) {
|
||||
fprintf(stderr, "%s: %s: Is a directory.\n", argv[0], argv[i]);
|
||||
return EX_NOINPUT;
|
||||
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;
|
||||
case EMFILE:
|
||||
fprintf(stderr, "%s: Internal error.\n", argv[0]);
|
||||
return EX_SOFTWARE;
|
||||
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;
|
||||
default:
|
||||
fprintf(stderr, "%s: Unknown error.\n", argv[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user