aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Howard <yzena.tech@gmail.com>2021-03-31 10:24:21 -0600
committerGavin Howard <yzena.tech@gmail.com>2021-03-31 10:24:21 -0600
commit07d3952a4ef8b4df37419957d7ddf531c9a4b0db (patch)
tree29214232b724e0b880d14c9732e1e5756405f052
parent0b33c4554787abe338e408a16dcee9dea329e109 (diff)
downloadbc-07d3952a4ef8b4df37419957d7ddf531c9a4b0db.tar.gz
Add the new command-line option to the manuals
-rw-r--r--manuals/bc.1.md.in19
-rw-r--r--manuals/dc.1.md.in19
2 files changed, 38 insertions, 0 deletions
diff --git a/manuals/bc.1.md.in b/manuals/bc.1.md.in
index 308460a7..fe9d2c00 100644
--- a/manuals/bc.1.md.in
+++ b/manuals/bc.1.md.in
@@ -192,6 +192,25 @@ The following are the options that bc(1) accepts.
This is a **non-portable extension**.
+**-R**, **-\-no-read-prompt**
+
+{{ A E H N EH EN HN EHN }}
+: Disables the read prompt in TTY mode. (The read prompt is only enabled in
+ TTY mode. See the **TTY MODE** section.) This is mostly for those users that
+ do not want a read prompt or are not used to having them in bc(1). Most of
+ those users would want to put this option in **BC_ENV_ARGS** (see the
+ **ENVIRONMENT VARIABLES** section). This option is also useful in hash bang
+ lines of bc(1) scripts that prompt for user input.
+
+ This option does not disable the regular prompt because the read prompt is
+ only used when the **read()** built-in function is called.
+{{ end }}
+{{ P EP HP NP EHP ENP HNP EHNP }}
+: Because bc(1) was built without support for prompts, this option is a no-op.
+{{ end }}
+
+ This is a **non-portable extension**.
+
**-q**, **-\-quiet**
: This option is for compatibility with the [GNU bc(1)][2]; it is a no-op.
diff --git a/manuals/dc.1.md.in b/manuals/dc.1.md.in
index b7627f21..0ae5d0d2 100644
--- a/manuals/dc.1.md.in
+++ b/manuals/dc.1.md.in
@@ -92,6 +92,25 @@ The following are the options that dc(1) accepts.
This is a **non-portable extension**.
+**-R**, **-\-no-read-prompt**
+
+{{ A E H N EH EN HN EHN }}
+: Disables the read prompt in TTY mode. (The read prompt is only enabled in
+ TTY mode. See the **TTY MODE** section.) This is mostly for those users that
+ do not want a read prompt or are not used to having them in dc(1). Most of
+ those users would want to put this option in **BC_ENV_ARGS** (see the
+ **ENVIRONMENT VARIABLES** section). This option is also useful in hash bang
+ lines of dc(1) scripts that prompt for user input.
+
+ This option does not disable the regular prompt because the read prompt is
+ only used when the **?** command is used.
+{{ end }}
+{{ P EP HP NP EHP ENP HNP EHNP }}
+: This option is a no-op.
+{{ end }}
+
+ This is a **non-portable extension**.
+
**-x** **-\-extended-register**
: Enables extended register mode. See the *Extended Register Mode* subsection