Thread (1 message) 1 message, 1 author, 2020-05-21

Re: [PATCH 2/4] t1450: increase test coverage of in-tree d/f detection

From: Junio C Hamano <hidden>
Date: 2020-05-21 18:01:22

René Scharfe [off-list ref] writes:
quoted
quoted
+check_duplicate_names () {
+	expect=$1 &&
+	shift &&
+	names=$@ &&
It doesn't really make sense to use $@ here since we're not using the
argument list behaviour of $@; we're just expanding it normally. I would
replace this with $* instead.
The assignment to $names flattens the list, so $@ and $* behave the same
here.
...
At least I'd like to keep the $@ as kind of a reminder that we want to
pass on arguments (full names), not words.
I personally prefer to use "$*" when we are not invoking the "list"
magic of "$@" and switch it to "$@" when it starts to matter, but I
can also understand your "reminder value" reasoning, so I am on the
fence.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help