<p>我不想访问shell中的shell命令历史记录。它必须暂时封锁,然后我才能释放那个封锁。你知道吗</p>
<p><strong>例如,</strong>当我在shell中按<code>up arrow</code>时,它会显示历史中出现的最后一个命令,但当我在shell上按向上箭头时,我不想访问历史</p>
<p>我们能阻止历史访问它吗?你知道吗</p>
<p>我试过<code>set +o history</code>,但目的不同。你知道吗</p>
<pre><code>shell:> ifconfig
shell:> #some shell.py
Login: #when I press up arrow, "ifconfig" comes here as that was last command
Password:
</code></pre>
<p>对于<strong>登录:</strong>它只需要访问输入,不在此处访问历史记录。
接受登录和密码后,我可以再次访问历史记录。你知道吗</p>