summaryrefslogtreecommitdiff
path: root/manuals/bc.1.md.in
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-08-03 18:55:39 +0000
committerStefan Eßer <se@FreeBSD.org>2020-08-03 18:55:39 +0000
commita68dea2ff90f2e77fe8c6a9e022aa1ac258106b7 (patch)
tree14083ae0377e0e7df842ba66878bd3f26c9491c7 /manuals/bc.1.md.in
parentee177a09be9c81bf1c3e00326e1d38e6edb8e2a4 (diff)
Notes
Diffstat (limited to 'manuals/bc.1.md.in')
-rw-r--r--manuals/bc.1.md.in26
1 files changed, 10 insertions, 16 deletions
diff --git a/manuals/bc.1.md.in b/manuals/bc.1.md.in
index ed2fa8beae7b..80892e742345 100644
--- a/manuals/bc.1.md.in
+++ b/manuals/bc.1.md.in
@@ -195,10 +195,10 @@ The following are the options that bc(1) accepts.
**-q**, **--quiet**
-: Do not print copyright header. bc(1) will also suppress the header in
- non-interactive mode.
-
- This is mostly for compatibility with the [GNU bc(1)][2].
+: This option is for compatibility with the [GNU bc(1)][2]; it is a no-op.
+ Without this option, GNU bc(1) prints a copyright header. This bc(1) only
+ prints the copyright header if one or more of the **-v**, **-V**, or
+ **--version** options are given.
This is a **non-portable extension**.
@@ -229,9 +229,10 @@ The following are the options that bc(1) accepts.
evaluated in the order given. This means that if a file is given before an
expression, the file is read in and evaluated first.
- In other bc(1) implementations, this option causes the program to execute
- the expressions and then exit. This bc(1) does not, unless the
- **BC_EXPR_EXIT** is defined (see the **ENVIRONMENT VARIABLES** section).
+ After processing all expressions and files, bc(1) will exit, unless **-**
+ (**stdin**) was given as an argument at least once to **-f** or **--file**.
+ However, if any other **-e**, **--expression**, **-f**, or **--file**
+ arguments are given after that, bc(1) will give a fatal error and exit.
This is a **non-portable extension**.
@@ -241,9 +242,8 @@ The following are the options that bc(1) accepts.
through **stdin**. If expressions are also given (see above), the
expressions are evaluated in the order given.
- In other bc(1) implementations, this option causes the program to execute
- the files and then exit. This bc(1) does not, unless the
- **BC_EXPR_EXIT** is defined (see the **ENVIRONMENT VARIABLES** section).
+ After processing all expressions and files, bc(1) will exit, unless **-**
+ (**stdin**) was given as an argument at least once to **-f** or **--file**.
This is a **non-portable extension**.
@@ -1615,12 +1615,6 @@ bc(1) recognizes the following environment variables:
lines to that length, including the backslash (**\\**). The default line
length is **70**.
-**BC_EXPR_EXIT**
-
-: If this variable exists (no matter the contents), bc(1) will exit
- immediately after executing expressions and files given by the **-e** and/or
- **-f** command-line options (and any equivalents).
-
# EXIT STATUS
bc(1) returns the following exit statuses: