[Info-vax] VMS Features I Wish Linux Had
Paul Sture
nospam at sture.ch
Sat Jun 18 23:34:44 EDT 2016
On 2016-06-15, johnwallace4 at yahoo.co.uk <johnwallace4 at yahoo.co.uk> wrote:
> On Wednesday, 15 June 2016 10:34:33 UTC+1, Johnny Billquist wrote:
<snip>
>>
>> Well, the saved history needs to go somewhere. Exactly where is a
>> technical question. But you are repeating my point about having the
>> (hopefully) same code replicated in each program being a bad design.
>>
<snip>
> continuing the rathole...
>
>
> Where the saved history lives is an interesting question. You
> presumably wouldn't want application B to be able to (by default)
> see data entered to application A?
The Terminal program in OS X has recently[1] acquired separate bash
history files for separate sessions. These live in the directory
~/.bash_sessions.
I'll admit I haven't explored this feature in depth yet, but when
running Terminal with multiple sessions open, close then restart it
(usually only done here for a logout/login or reboot), then each
session has its previous context for current directory and history
restored.
(The scrollback buffer for each session in also restored, but that's
probably part of the general OS X support for restoring application
context from the previous session.)
[1] I _think_ this feature arrived with the latest major version
of OS X, last autumn.
--
There are two hard things in computer science, and they are cache invalidation,
naming, and off-by-one errors.
More information about the Info-vax
mailing list