[Ilugc] History Command

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Thu Aug 17 15:29:33 2006

On 17/08/06, Girish Venkatachalam <girish1729@xxxxxxxxx> wrote:

Assuming that I have five ptys in an X session. I type
different commands in them. Now , I open a new xterm
and then press Control-R. What is supposed to happen?

I should be able to search for all the commands I
typed in the past , right?

This doesn't quite happen.

Well, the history file is written to the disk only at the end of your
session (logout, or control-D, or exit, or click-on-X or whatever).
Newer sessions read history from disk and not via any IPC mechanism.
This is quite likely what your confusion is about?

Binand

Other related posts: