From 5f4c3fa8c992a73cf3a590bb05e0fcfe882394cd Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 16 Mar 2004 00:40:34 +0000 Subject: 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@ --- usr.bin/diff/diff.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/diff/diff.1') 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 -- cgit v1.2.3-59-g8ed1b