[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [wdiff-bugs] Wrong process status returned

From: Martin von Gagern
Subject: Re: [wdiff-bugs] Wrong process status returned
Date: Thu, 08 Dec 2011 23:14:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111119 Thunderbird/8.0

Dear Ilya Sabanin.

On 07.12.2011 16:52, Ilya Sabanin wrote:
> svn diff … | wdiff -d
> Returns a status 1, even though the command finished successfully. Shouldn't 
> it return 0?

This is intentional: the return status mimics the status "diff" would
yield, which is 1 if there were any differences.

This is also documented in the manual / infotext documentation:

2.1 Invoking wdiff
"`wdiff' will exit with a status of 0 if no differences were found, a
status of 1 if any differences were found, or a status of 2 for any error."

I hope this clarifies things.

 Martin von Gagern

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]