Junio C Hamano <junkio@xxxxxxx> writes: >> Is there any way to do isatty() from shell scripts? > > Yes. Oops -- wrong answer which is too short. $ git grep -B1 'standard input' -- '*.sh' - : 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