From 348f3ed4274ab7bc0d1fcf120dd9672579a49f07 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 3 Dec 2022 16:36:46 -0800 Subject: [PATCH] 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. --- CHANGES | 5 +++++ calc.man | 45 ++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 4167dd0..d92df22 100644 --- a/CHANGES +++ b/CHANGES @@ -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: diff --git a/calc.man b/calc.man index 353752e..173e205 100644 --- a/calc.man +++ b/calc.man @@ -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 :