[Bug 1190183] Re: bzr diff always returns error exit code (1) even when it succeeds

Matthew Paul Thomas mpt at canonical.com
Wed Jun 12 14:41:08 UTC 2013


I wasn't disputing that adding a file was a change. I just thought that any non-zero exit value was supposed to communicate an error, 1 especially so (EXIT_FAILURE). But on further reading, I see it's more complicated than that.
http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
http://stackoverflow.com/questions/1101957/are-there-any-standard-exit-status-codes-in-linux
Sorry for the noise.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/1190183

Title:
  bzr diff always returns error exit code (1) even when it succeeds

Status in “bzr” package in Ubuntu:
  Invalid

Bug description:
  Bazaar 2.6.0dev3, bzr 2.6.0~bzr6571-4ubuntu2, Ubuntu 13.04

   😌 11:14:12 at hacking> bzr init test
  Created a standalone tree (format: 2a)                                         
   😌 11:14:20 at hacking> cd test
   😌 11:14:49 at test> touch foo
   😌 11:14:55 at test> bzr add
  adding foo
   😌 11:14:58 at test> bzr diff
  === added file 'foo'
   😠 11:15:01 at test> echo $?
  1
   😌 11:15:05 at test> 

  What should happen: If the bzr diff command succeeds, it should return
  an exit code of 0, not 1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/1190183/+subscriptions




More information about the foundations-bugs mailing list