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; }