NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

HISTFILE support for /bin/sh



At Thu, 04 Jul 2024 15:09:46 +0700, Robert Elz <kre%munnari.OZ.AU@localhost> wrote:
Subject: Re: properly way of setting premissions for devices in /dev/
>
> There would be two new variables, HISTFILE which (kind of like what happens
> to ENV) gets expanded (if required) to make a file name, when set, and if the
> file named exists, and is a shell history file, gets read and its contents
> appended to whatever history exists in the current shell (each time it is
> set that would happen).

Shouldn't the on-disk history initially be prepended to in-core history
(which might only be what has been sourced so far from the profiles etc.)?

Then, if HISTAPPEND is set any new history written to the file since it
was last read could be appended to in-core history.

Do you have plans for adding HISTSIZE as well?

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpq1TuHVFnrJ.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index