git-p4: remove bash-ism in t9809

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>

Pete Wyckoff committed Feb 26, 2012 at 10:37 UTC 8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9
1 file changed +1 -1
t/t9809-git-p4-client-view.sh
+1 -1
@@ -31,7 +31,7 @@ client_view() {
31 #
32 check_files_exist() {
33 ok=0 &&
34 - num=${#@} &&
34 + num=$# &&
35 for arg ; do
36 test_path_is_file "$arg" &&
37 ok=$(($ok + 1))