This is not a bug -- http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html says that echo should process the backslashes. It would be a bug if echo did not process the backslashes.
If you don't want backslashes processed, use printf:
printf %s\\n '\\'
This is not a bug -- http:// pubs.opengroup. org/onlinepubs/ 9699919799/ utilities/ echo.html says that echo should process the backslashes. It would be a bug if echo did not process the backslashes.
If you don't want backslashes processed, use printf:
printf %s\\n '\\'