Jeff King <peff@xxxxxxxx> writes: > On Sat, Feb 23, 2008 at 09:13:39PM +0100, Johannes Sixt wrote: > >> > -cat > fake-editor.sh <<\EOF >> > -#!/bin/sh >> > +echo "#!$SHELL" >fake-editor >> >> Did you mean fake-editor.sh here? > > Gah, yes. Not sure how I was even able to run the test with that error. Simple. fake-editor.sh does not begin with #! anymore and exec causes /bin/sh to run, and your system happens to have a sane shell there. If you used $SHELL not $SHELL_PATH and wrote to fake-editor.sh, you would have noticed that using $SHELL there was wrong as it would have said "#!bash" for you ;-) - 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