3 ms·
According to the code, will the nflag work if you put it at the end? (e.g. 'echo hello world -n')
by HKH2 4y ago
According to the code, will the nflag work if you put it at the end? (e.g. 'echo hello world -n')
- arexxbifs 4y agoNope, and that's by design. "The BSD echo checks the first argument for the string -n which causes it to suppress the newline that would otherwise follow the final argument in the output." https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/e...