Martin Gagnon(deleted)
|
cmp utility bug on QNX 6.4.x
|
Martin Gagnon(deleted)
10/06/2009 10:59 PM
post39473
|
cmp utility bug on QNX 6.4.x
The cmp utility return "0" (file identical), when EOF is reached in the shorter file before any differences were found.
To reproduce the bug:
echo "hello" > 1.txt
echo "hello" > 2.txt
echo "world" >> 2.txt
cmp 1.txt 2.txt
echo "$?"
it return "0", but it should return "1" and print a EOF error on stderr according to the documentation and to other
implementation of cmp.
I verified on QNX 6.3 and cmp behave properly. I notice the bug on 6.4.0 and 6.4.1
--
Martin
|
|
|