From: Matthias Klose <[email protected]>
This addition to the documentation has been shipped in Debian's bash
since version 3.0-9.
---
builtins/test.def | 3 +++
doc/bash.1 | 4 ++++
doc/bashref.texi | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/builtins/test.def b/builtins/test.def
index b6d5b81f..2140b6aa 100644
--- a/builtins/test.def
+++ b/builtins/test.def
@@ -100,6 +100,9 @@ Arithmetic binary operators return true if ARG1 is equal,
not-equal,
less-than, less-than-or-equal, greater-than, or greater-than-or-equal
than ARG2.
+See the bash manual page bash(1) for the handling of parameters (i.e.
+missing parameters).
+
Exit Status:
Returns success if EXPR evaluates to true; fails if EXPR evaluates to
false or an invalid argument is given.
diff --git a/doc/bash.1 b/doc/bash.1
index d991343a..6512ec15 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -808,6 +808,10 @@ as primaries.
.IP
When used with \fB[[\fP, the \fB<\fP and \fB>\fP operators sort
lexicographically using the current locale.
+.PP
+See the description of the \fItest\fP builtin command (section SHELL
+BUILTIN COMMANDS below) for the handling of parameters (i.e.
+missing parameters).
.IP
When the \fB==\fP and \fB!=\fP operators are used, the string to the
right of the operator is considered a pattern and matched according
diff --git a/doc/bashref.texi b/doc/bashref.texi
index 62299b10..49a5aa40 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -8291,6 +8291,10 @@ The @code{test} command uses ASCII ordering.
Unless otherwise specified, primaries that operate on files follow symbolic
links and operate on the target of the link, rather than the link itself.
+See the description of the @code{test} builtin command (section
+@pxref{Bash Builtins} below) for the handling of parameters
+(i.e. missing parameters).
+
@table @code
@item -a @var{file}
True if @var{file} exists.
--
2.51.0