git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git bisect code 125 - "WFT?"
@ 2011-03-16 20:44 Piotr Krukowiecki
  2011-03-16 21:36 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Piotr Krukowiecki @ 2011-03-16 20:44 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Christian Couder

Hi,

in git bisect exit code 1-124 and 126-127 means "source is bad"
(0 means "ok", 125 means "can't be tested" and anything other is "stop").

My first reaction was "WTF" - you have a special value in the middle
of a range??

It got a bit clearer after reading the original patch[1] and man bash. It seems
this value is last "free" value for the user to use, at least in bash - values
above 125 may be used by the shell.

Bash uses code 126 if command is not executable, and 127 if command is
not found.

I think it would be better to use 126 and 127 as either "can't be tested" or
"stop" (125 should be left as is):

   * It would not leave a WTF gap in the "bad" range

   * If you get "command not executable" or "command not found" it's more
     probable something is broken than the code is bad, and you should fix
     your script

Opinions? Would it be possible to change the meaning of the codes now
(in 1.8.0)?

[1] http://article.gmane.org/gmane.comp.version-control.git/62390

-- 
Piotr Krukowiecki

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-19 15:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16 20:44 git bisect code 125 - "WFT?" Piotr Krukowiecki
2011-03-16 21:36 ` Junio C Hamano
2011-03-16 22:06   ` Piotr Krukowiecki
2011-03-17  6:55     ` Johannes Sixt
2011-03-17  7:27       ` Jeff King
2011-03-17 17:56         ` Junio C Hamano
2011-03-19 15:18           ` [PATCH 1/2] git bisect run: exit code 126 and 127 abort the run Piotr Krukowiecki
2011-03-19 15:20           ` [PATCH 2/2] bisect documentation: exit codes 126,127 abort bisect Piotr Krukowiecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).