Clarified -a and -f in calc man page

Clarify in the calc man page, the relationship between -q and
calc start scripts such as the ~/.calcrc file.

Fixed in the calc man page, the issue of -f not implying -q.
This commit is contained in:
Landon Curt Noll
2022-12-03 16:36:46 -08:00
parent 542a263de6
commit 348f3ed427
2 changed files with 47 additions and 3 deletions

View File

@@ -78,6 +78,11 @@ The following are the changes from calc version 2.14.2.0 to date:
a few few minor text improvements. Updated cal/regress to test
config("tilde_space").
Clarify in the calc man page, the relationship between -q and
calc start scripts such as the ~/.calcrc file.
Fixed in the calc man page, the issue of -f not implying -q.
The following are the changes from calc version 2.14.1.2 to date:

View File

@@ -251,9 +251,6 @@ For example:
\fI#!${BINDIR}/calc\fP \fB\-q\fP \fB\-f\fP
.fi
.in -5n
.sp 1
This allows the script to run independently of
startup scripts.
.sp 1
See
@@ -294,6 +291,24 @@ This will cause calc to process lines in
in
.BR "shell script mode" .
.sp 1
.B NOTE:
The use of
.BR \-f
does
.B NOT
imply
.BR \-q
and thus one would need to use
.sp 1
.in +5n
.nf
\fIcalc\fP\ [optional_other_flags\ \&...] \fB\-q\fP \fB\-f\fP filename
.fi
.in -5n
.sp 1
to disable the use of calc startup files as well.
.sp 1
The use of
.B \-f
@@ -458,6 +473,13 @@ flag overrides
.TP
.B \-q
Disable the reading of the startup scripts.
.sp 1
This allows the script to run independently of
startup scripts such those managed by the
.B $CALCRC
environment variable.
For example, this will disable the use of the common calcrc file
(usually ~/.calcrc).
.TP
.B \-s
@@ -813,6 +835,23 @@ are automatically set if
.B \-i
is not given.
.sp 1
.B NOTE:
The use of
.BR \-f
does
.B NOT
imply
.BR \-q
and thus one would need to use
.sp 1
.in +5n
.nf
\fIcalc\fP\ [optional_other_flags\ \&...] \fB\-q\fP \fB\-f\fP filename
.fi
.in -5n
.sp 1
to disable the use of calc startup files as well.
.sp 1
For example, if
the file
.BR /tmp/mersenne :