From: Pete Wyckoff Date: Sun, 26 Feb 2012 15:37:26 +0000 (-0500) Subject: git-p4: remove bash-ism in t9809 X-Git-Tag: v1.7.9.3~32 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9;p=git.git 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 Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- diff --git a/t/t9809-git-p4-client-view.sh b/t/t9809-git-p4-client-view.sh index 96426414a..b0c6d4391 100755 --- a/t/t9809-git-p4-client-view.sh +++ b/t/t9809-git-p4-client-view.sh @@ -31,7 +31,7 @@ client_view() { # check_files_exist() { ok=0 && - num=${#@} && + num=$# && for arg ; do test_path_is_file "$arg" && ok=$(($ok + 1))