From e4cdd7df499a3e9d508bcf1bcacc4a84f0308469 Mon Sep 17 00:00:00 2001 From: call-cc Date: Wed, 3 Jun 2020 00:33:47 -0400 Subject: [PATCH] slight fix --- src/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/echo.c b/src/echo.c index 16e9a5d..1474803 100644 --- a/src/echo.c +++ b/src/echo.c @@ -12,6 +12,6 @@ main(int argc, char *argv[]) (void)fputs(*argv, stdout); // Print argv if(*++argv) putchar(' '); // If multiple things in argv, print a space between them. } - if(nflag) putchar('\n'); + if(!nflag) putchar('\n'); return 0; }