Re: Problem completing remotes when .git/remotes exits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 25, 2012, 23:43 UTC
- Message-ID
- <7vbogtvfb4.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120925230045.GA13266@goldbirke>
SZEDER Gábor <szeder@ira.uka.de> writes:
> - test -d "$d/remotes" && ls -1 "$d/remotes" > + test -d "$d/remotes" && command ls -1 "$d/remotes"
Yuck. For normal scripts, nobody sane would define "alias" for non-interactive environments, but because these things work in an interactive environment, we have to protect ourselves from user aliases. Not just "ls", but "test" we see above may misbehave X-<.