On Sun, Feb 14, 2010 at 11:35:21PM -0600, Jonathan Nieder wrote: > How about this? It seems a little simpler, though it might be less > reliable. > [...] > +if eval "exec 8>/dev/tty" 2>/dev/null && test -t 8 Right, it still breaks if we don't have a tty at all. Which is perhaps not the "99% of runs" I mentioned before, but I think is not all that uncommon (e.g., cron jobs). -Peff -- 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