New answers tagged

2

The CMD prompt such as C:\> is always displayed at the beginning of a line. In order for CMD to be able to guarantee that, it must insert a newline after a console program ends, since the program itself might have left a line not terminated with a newline at the end. Hypothetically, if CMD did not automatically insert a newline after the program ended, ...


0

POSIX 7 says you can't http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html -e is not defined and backslashes are implementation defined: If the first operand is -n, or if any of the operands contain a <backslash> character, the results are implementation-defined. unless you have an optional XSI extension. So use printf instead: ...



Top 50 recent answers are included