summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 543987b)
raw | patch | inline | side by side (parent: 543987b)
author | Pete Wyckoff <pw@padd.com> | |
Sun, 26 Feb 2012 15:37:26 +0000 (10:37 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Feb 2012 00:19:22 +0000 (16:19 -0800) |
Plain old $# works to count the number of arguments in
either bash or dash, even if the arguments have spaces.
Based-on-patch-by: Vitor Antunes <vitor.hda@gmail.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
either bash or dash, even if the arguments have spaces.
Based-on-patch-by: Vitor Antunes <vitor.hda@gmail.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9809-git-p4-client-view.sh | patch | blob | history |
index 96426414aadca543d650cd607b385c75f377260d..b0c6d4391daa041cf379f402704fb0989849e727 100755 (executable)
#
check_files_exist() {
ok=0 &&
- num=${#@} &&
+ num=$# &&
for arg ; do
test_path_is_file "$arg" &&
ok=$(($ok + 1))