Re: turn off history

Bernd Paysan <[email protected]> Wed, 27 Jul 2022 13:00:37 +0200
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <1826235.tdWV9SEqCh@liubei>
Am Dienstag, 26. Juli 2022, 21:12:28 CEST schrieb Tomas Hlavaty:
> Hi,
> 
> is there a way to turn off history so that a script or server does not
> open the history-file at all?

If you supply a nonexisting file or a file, which can't be created for lack of 
permissions in the respective directory with GFORTHHIST, it will try to open 
it, but failing so, not have a history.

Completely disabling requires changes to the source code.

Another question is: Should we open the history file later in the boot process, 
e.g. on entering interactive mode?  There's no need to do that earlier.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmLhGtUACgkQ9y2Uk5Mt
oGezUw//ensZVM/VMqqdm6N9exrmScYom4PXufHt2Gdut/m1C1ByqkS+0Lpf/0ci
rQdaWaveT6KrlnjW+bpXlZmnzPas+q7CLDJJQ0et4wgcVcT1+fwXIGiWbBHszvMw
9ZI/4L+KavQqYJBp445iymsUPh1YpONw2aAEHEoH7C4XG1+/PBqeuBNu19L1Kc8Z
0mBwVh5rIOzI0fMI+cyEBZDNDGLI8ajtVdq5LuP0KUnspSxcx64Ps5TSiWZMLyvs
SKU7xsPQcLG1b5KRbCr2ZSLQvtKbFSl//cs496aERoFKw8/bsKfJSlrA28fSVv22
91zM9wxv/RRHpNhSpOoJYxOyp/Fk8L/zaax2qfLZMdbHDa4pCtPT3etSTVYZAaS+
jV9dUrgiMt+UFUiRQuIfEWck4+CYyoj/rMEtnzyOBSI2vT6IHBIfLQ2fO6/BbGuY
xKV2U9Mvrr8njuhqiqXLMI0EG9vZHYnvh+jsVkN4dsYw183+h7LWc2CLlPmvCHaV
IYdhFasQhcC2oIuiznfltYrxVGbkeoasE0BfUcdtgyhwe5SRF7SWQOkKM+kSlUuI
eTfSLbsUV1UKIHt2b13jr4rA09+0+sVxhoHuz0j4c9womMsCQLrCBp54EQR+Bgl/
WKUuENEgN8rQAuFseYTpl61LuYF0we2YBW77tHrTS6kUotA/9uQ=
=8Skt
-----END PGP SIGNATURE-----