Package: diff
Version: 2.8.1-11
Severity: normal

The output of the cmp command should be documented. I'm not sure
there's a bug a not, but it is really strange:

dixsept% printf a > file1
dixsept% printf ab > file2
dixsept% cmp file1 file2
cmp: EOF on file1
dixsept% cmp file1 file2 > /dev/null
dixsept% cmp file1 file2 2> /dev/null
dixsept% cmp=$(cmp file1 file2)
cmp: EOF on file1
dixsept% echo $cmp

dixsept% cmp=$(cmp file1 file2 2> /dev/null)
dixsept% echo $cmp                          

dixsept% cmp=$(cmp file1 file2 2>&1)
dixsept% echo $cmp                 
cmp: EOF on file1
dixsept%

I don't think it is POSIX compliant.

  http://www.opengroup.org/onlinepubs/009695399/utilities/cmp.html

For instance, with "cmp file1 file2 > /dev/null", there should be
an output to stderr in the above case.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.4-20051215
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages diff depends on:
ii  libc6                         2.3.6-3    GNU C Library: Shared libraries an

diff recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to