On Fri, 17 Nov 2000, Stan Isaacs wrote:

> 1. Bash re-starts history each time it goes into a subshell.  I think it
>    would be much more reasonable to keep a uniform history for a given 
>    login session, even if, for instance, you started the "script" command
>    to keep track of what you are doing.  Or at least a flag that allowed
>    a single history, even when you run multiple windows.  Is there any
>    documentation or explaination of standards for this, or why one way was
>    chosen over another?

Unix is multiuser. If you've got 20 pty's open for the same user, would
you really want the system getting bogged down in reading/writing to a
text file every single time a command is executed or searched for in the
history?

The history is kept in memory, and only written out when a shell is
exited. This is a feature, not a bug. I'm sure that if one could patch the
shell to do what you're suggesting without causing flocking problems or
heavy disk I/O, it would have already been done.

-- 
Todd A. Jacobs
Senior Network Consultant





_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to