Re: Re* git submodule output on invalid command

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Friday, September 5, 2008 - 10:03 pm

David Aguilar <davvid@gmail.com> writes:


Nothing you did is involved in this nit; I was talking about "test -z"
argument.

	cmd "$@"

gives N separate argument to the "cmd", as if each of them is surrounded
by a dq pair, i.e.

	cmd "$1" "$2" "$3"...

while

	cmd "$*"

gives a single argument to the "cmd", all separated with the first
character of $IFS (typically a SP), i.e.

	cmd "$1 $2 $3..."

which is what the "test -z" above would want to test (testing $# is Ok for
the purpose of this test as well).

The "$@" you moved is the argument given to ls-files; that one should be
"$@" and replacing it to "$*" would be wrong.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git submodule output on invalid command, Pieter de Bie, (Fri Sep 5, 9:16 am)
Re* git submodule output on invalid command, Junio C Hamano, (Fri Sep 5, 11:52 am)
Re: Re* git submodule output on invalid command, David Aguilar, (Fri Sep 5, 9:22 pm)
Re: Re* git submodule output on invalid command, Junio C Hamano, (Fri Sep 5, 10:03 pm)