mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Added use of $CALCHISTFILE and start of 2.12.7.5
By default, the calc history file is located in ~/.calc_history. Now, if the environment variable $CALCHISTFILE is defined and is non-empty, then calc history file will be defined by the $CALCHISTFILE environment variable.
This commit is contained in:
@@ -7,7 +7,8 @@ Environment variables
|
||||
|
||||
/ ./ ../ ~
|
||||
|
||||
If this variable does not exist, a compiled value
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, a compiled value
|
||||
is used. Typically compiled in value is:
|
||||
|
||||
.:./cal:~/cal:${CALC_SHAREDIR}:${CUSTOMCALDIR}
|
||||
@@ -27,7 +28,8 @@ Environment variables
|
||||
line), calc searches for files along the :-separated
|
||||
$CALCRC environment variable.
|
||||
|
||||
If this variable does not exist, a compiled value
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, a compiled value
|
||||
is used. Typically compiled in value is:
|
||||
|
||||
${CALC_SHAREDIR}/startup:~/.calcrc:./.calcinit
|
||||
@@ -66,7 +68,8 @@ Environment variables
|
||||
This value is taken to be the home directory of the
|
||||
current user. It is used when files begin with '~/'.
|
||||
|
||||
If this variable does not exist, the home directory password
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, the home directory password
|
||||
entry of the current user is used. If that information
|
||||
is not available, '.' is used.
|
||||
|
||||
@@ -75,7 +78,8 @@ Environment variables
|
||||
When invoking help, this environment variable is used
|
||||
to display a help file.
|
||||
|
||||
If this variable does not exist, a compiled value
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, a compiled value
|
||||
is used. Typically compiled in value is something
|
||||
such as 'more', 'less', 'pg' or 'cat'.
|
||||
|
||||
@@ -84,11 +88,20 @@ Environment variables
|
||||
When a !-command is used, the program indicated by
|
||||
this environment variable is used.
|
||||
|
||||
If this variable does not exist, a compiled value
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, a compiled value
|
||||
is used. Typically compiled in value is something
|
||||
such as 'sh' is used.
|
||||
|
||||
## Copyright (C) 1999 Landon Curt Noll
|
||||
CALCHISTFILE
|
||||
|
||||
This value is taken to be the calc history file.
|
||||
|
||||
If this variable does not exist, or if this
|
||||
variable is an empty string, then ~/.calc_history
|
||||
is used.
|
||||
|
||||
## Copyright (C) 1999,2021 Landon Curt Noll
|
||||
##
|
||||
## Calc is open software; you can redistribute it and/or modify it under
|
||||
## the terms of the version 2.1 of the GNU Lesser General Public License
|
||||
|
Reference in New Issue
Block a user