Hi there, I am new to BSD .
Whenever I try running python or any other scripts from the internet (outside ports), my terminal/console would not recognize the new line escape sequence. It would just print it as a backslash and an N. for example, if I print the version info of the interpreter from python, it would print:
So you can see that there was meant to be a new line on the output but it printed
. I tried running a script a while ago and it did the same thing. I tried setting the locale but didn't work. But when I used bash from shells/linux-c7-bash, it (the script) printed everything properly. Is there any way to fix this problem? Thanks in advance.
Whenever I try running python or any other scripts from the internet (outside ports), my terminal/console would not recognize the new line escape sequence. It would just print it as a backslash and an N. for example, if I print the version info of the interpreter from python, it would print:
Code:
>>>sys.version
'3.6.4 (default, Feb 11 2018, 17:20:59) \n[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)]'
Code:
\n