Re: Weird behavior of shell variables in git aliases
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 23, 2011, 03:01 UTC
- Message-ID
- <7vmxkmilq2.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTinvP1TvhNBsN+Y3wyhzg+qampa6J=3NMfwr76a=@mail.gmail.com>
Lasse Makholm <lasse.makholm@gmail.com> writes:
> Whlie we're at it, is "sh -c ... -" and "sh -c ... --" equally > portable, I wonder?
I suspect anything would work, but it is customary to pass the dummy $0 by writing "-" there. People who breathe shells would be able to recognize the idiom more easily if you stick to that well-known form.