On Mon, Jun 24, 2013 at 10:44 AM, Eric Sunshine <sunsh...@sunshineco.com> wrote: > On Mon, Jun 24, 2013 at 4:33 AM, Johan Herland <jo...@herland.net> wrote: >> On Mon, Jun 24, 2013 at 9:28 AM, Junio C Hamano <gits...@pobox.com> wrote: >>> Johan Herland <jo...@herland.net> writes: >>> >>>>> + git --git-dir="${3:-repo1}" log -1 --format='%h %s' "$2" >actual >>>>> && >>>> >>>> Isn't ${3:-repo1} a bashism? >>> >>> I do not think so. But now I looked at it again, I think I would >>> use ${3-repo1} form in this case myself. No caller passes an empty >>> string to the third place. >> >> Ok, I have to admit that I'm not at all sure where the line between sh >> and bash goes when it comes to ${magic}... Is there any good >> documentation on what is in sh and what is not? > > POSIX: > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
Thanks! Learn something new every day, I guess. :) ...Johan -- Johan Herland, <jo...@herland.net> www.herland.net -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html