[issue20886] Disabling logging to ~/.python_history is not simple enough

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Tue Mar 11 03:38:56 CET 2014


Arfrever Frehtes Taifersar Arahesis added the comment:

Antoine Pitrou:
> What sure not the "panic mode" is about, but in any case you can simply
> use e.g. "chmod 111 .python_history" (which will forbid both reading and writing the file).

It surely does not work:

$ rm -f .python_history
$ touch .python_history
$ chmod 111 .python_history
mode of ‘.python_history’ changed from 0640 (rw-r-----) to 0111 (--x--x--x)
$ python3.4 -q
>>> 123
123
>>> ^D
$ cat .python_history
123
$

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20886>
_______________________________________


More information about the Python-bugs-list mailing list