logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: fb039c94ddc84e1f2ec5dcb38e7d1b507d0dfd97
parent 0ff4ea00499ddff85d59330535d928e3c0a97bc4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 19 Sep 2024 19:43:30 +0200

cmd/echo: unify error message formatting

Diffstat:

Mcmd/echo.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/echo.c b/cmd/echo.c @@ -37,7 +37,7 @@ main(int argc, char *argv[]) if(write(1, "\n", 1) < 1) { - perror("echo: Write error"); + perror("echo: error: Failed writing"); return 1; } @@ -51,7 +51,7 @@ main(int argc, char *argv[]) ssize_t nwrite = write(1, *argv, arg_len); if(nwrite < (ssize_t)arg_len) { - perror("echo: Write error"); + perror("echo: error: Failed writing"); return 1; }