File: man-test2.dpatch

package info (click to toggle)
bash3 3.0-12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,736 kB
  • ctags: 34
  • sloc: sh: 3,053; makefile: 408
file content (57 lines) | stat: -rw-r--r-- 1,837 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#! /bin/sh -e

if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
esac
exit 0

# DP: Doucment handling of paramters of the test builtin.

--- doc/bash.1~	2004-10-17 17:04:56.000000000 +0200
+++ doc/bash.1	2004-10-17 17:14:12.000000000 +0200
@@ -3487,6 +3487,10 @@
 All expressions taking a \fIfile\fP argument except \fB-h\fP and \fB-L\fP
 are acting on the target of the symbolic link, not on the symlink
 itself, if \fIfile\fP is a symbolic link.
+.PP
+See the description of the \fItest\fP builtin command (section SHELL
+BUILTIN COMMANDS below) for the handling of parameters (i.e.
+missing paramters).
 .sp 1
 .PD 0
 .TP
--- doc/bashref.texi~	2004-10-17 17:04:56.000000000 +0200
+++ doc/bashref.texi	2004-10-17 17:16:46.000000000 +0200
@@ -5214,6 +5214,10 @@
 are acting on the target of the symbolic link, not on the symlink
 itself, if @var{file} is a symbolic link.
 
+See the description of the @code{test} builtin command (section
+@pxref{Bash Builtins} below) for the handling of parameters
+(i.e. missing paramters).
+
 @table @code
 @item -a @var{file}
 True if @var{file} exists.
--- builtins/test.def~	2004-10-17 17:04:56.000000000 +0200
+++ builtins/test.def	2004-10-17 17:19:38.000000000 +0200
@@ -92,6 +92,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 paramters).
 $END
 
 $BUILTIN [