summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.1
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-03-16 00:40:34 +0000
committermillert <millert@openbsd.org>2004-03-16 00:40:34 +0000
commit5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd (patch)
treef531dd735f940af417621b3f0eeb3a7893e008a1 /usr.bin/diff/diff.1
parentAnd two promise pciide, from chris@ (diff)
downloadwireguard-openbsd-5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd.tar.xz
wireguard-openbsd-5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd.zip
POSIX specifies that in directory mode device special files and
FIFOs shall be skipped. Other types of files may be skipped too (this is implementation-dependent). In directory mode, just skip anything that is not a regular file or directory. OK tedu@
Diffstat (limited to 'usr.bin/diff/diff.1')
-rw-r--r--usr.bin/diff/diff.15
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/diff/diff.1 b/usr.bin/diff/diff.1
index 48adb1307d2..633c2f435c0 100644
--- a/usr.bin/diff/diff.1
+++ b/usr.bin/diff/diff.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: diff.1,v 1.24 2004/01/25 14:48:32 jmc Exp $
+.\" $OpenBSD: diff.1,v 1.25 2004/03/16 00:40:34 millert Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -284,6 +284,9 @@ on text files which are different.
Binary files which differ,
common subdirectories, and files which appear in only one directory
are described as such.
+In directory mode only regular files and directories are compared.
+If a non-regular file such as a device special file or FIFO is
+encountered, a diagnostic message is printed.
.Pp
If only one of
.Ar file1