Bug 1127 - diff -r /dev
Summary: diff -r /dev
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: diffutils
Version: 5.2
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-02-12 03:02 UTC by frank
Modified: 2008-05-01 15:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-09-11 15:11:32 UTC
Embargoed:


Attachments (Terms of Use)

Description frank 1999-02-12 03:02:16 UTC
The following is an error in the diff command.  When
comparing devices in a subdirectory, diff does not recognize
files as the same device even though they may be.

[root@frank /root]# diff d*
File d1/fd is a block special file while file d2/fd is a
block special file
[root@frank /root]# ls -l d*
d1:
total 0
brw-rw-r--   1 root     root       2,   0 Feb 11 21:51 fd

d2:
total 0
brw-rw-r--   1 root     root       2,   0 Feb 11 21:51 fd
[root@frank /root]#

Comment 1 Tim Waugh 2000-09-11 15:05:31 UTC
I can reproduce this.

Comment 2 Tim Waugh 2000-09-11 15:11:30 UTC
This behaviour seems to be mandated by POSIX and Single UNIX.


Note You need to log in before you can comment on or make changes to this bug.