migration from private to rsa
[external/bash.git] / debian / patches / man-test.dpatch
1 #! /bin/sh -e
2
3 if [ $# -eq 3 -a "$2" = '-d' ]; then
4     pdir="-d $3"
5 elif [ $# -ne 1 ]; then
6     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7     exit 1
8 fi
9 case "$1" in
10     -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11     -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
12     *)
13         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14         exit 1
15 esac
16 exit 0
17
18 # DP: document conditional file expressions acting on the target of
19 # DP: symbolic links as well (except -h, -L).
20
21 --- builtins/test.def~  2002-04-04 21:48:17.000000000 +0200
22 +++ builtins/test.def   2004-10-16 19:51:24.000000000 +0200
23 @@ -60,6 +60,9 @@
24  
25    FILE1 -ef FILE2  True if file1 is a hard link to file2.
26  
27 +All file operators except -h and -L are acting on the target of a symbolic
28 +link, not on the symlink itself, if FILE is a symbolic link.
29 +
30  String operators:
31  
32      -z STRING      True if string is empty.