Dec-04-2017, 09:01 AM
is the explicit octal sequence encoding supposed to be available or not in string literals?
Output:lt1/forums /home/forums 1> ;
bash: syntax error near unexpected token `;'
lt1/forums /home/forums 2> py2
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> len('\x07')
1
>>> len('\o007')
5
>>>
lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> len('\x07')
1
>>> len('\o007')
5
>>>
lt1/forums /home/forums 4>