Bug 9740 - "xdelta delta" returns exit status 1 even when successful
: "xdelta delta" returns exit status 1 even when successful
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/xdelta1)
: unstable
: all Linux
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2006-06-28 20:39 by
Modified: 2007-02-15 20:40 (History)


Attachments


Note

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


Description From 2006-06-28 20:39:33
xdelta delta возвращает код завершения 1 даже при успешном выполнении операции.
Steps to Reproduce:
$ rpm -q xdelta1
xdelta1-1.1.3-alt4

$ dd if=/dev/zero of=file1 bs=4k count=1
$ dd if=/dev/zero of=file2 bs=8k count=1

$ xdelta delta file1 file2 file2.xdelta; echo $?
1

При этом file2.xdelta создаётся и успешно применяется к file1 командой xdelta
patch.
------- Comment #1 From 2007-02-15 19:48:03 -------
xdelta(1) says that
"The delta command exits with status 0 to indicate that no differences were
found, with status 1 to indicate that some differences were found, and with
status 2 to indicate an error of some kind.
------- Comment #2 From 2007-02-15 20:06:51 -------
Весьма неочевидное поведение, причём до версии 1.1.4 оно не было
документировано.
------- Comment #3 From 2007-02-15 20:40:08 -------
Видимо по аналогии с кодом возврата diff'а.