Jeff King wrote: > On Tue, Aug 31, 2010 at 12:10:55PM -0500, Jonathan Nieder wrote: >> Can the exit status (e.g. from a shell function) be negative? > > I don't believe so. Both bash and dash complain about "return -1" (and > POSIX says the number must be "an unsigned decimal integer"). Thanks for checking; missed that. It is clearer in POSIX that the exit status from an external command will be truncated to an 8-bit unsigned integer, which as you say is the most important thing. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html