File: man-test2.diff

package info (click to toggle)
bash 5.3-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 43,860 kB
  • sloc: ansic: 134,738; sh: 8,866; yacc: 5,966; makefile: 4,697; perl: 4,105; asm: 48; awk: 23; sed: 16
file content (40 lines) | stat: -rw-r--r-- 1,443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# DP: Document handling of parameters of the test builtin.

--- a/builtins/test.def
+++ b/builtins/test.def
@@ -100,6 +100,9 @@ Arithmetic binary operators return true
 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.
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -804,6 +804,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
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -8267,6 +8267,10 @@ The @code{test} command uses ASCII order
 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.