summaryrefslogtreecommitdiff
path: root/t/t9809-git-p4-client-view.sh
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-02-26 15:37:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-02-27 00:19:22 (GMT)
commit8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9 (patch)
treead36ead3fccd4ef3c7faa057e9fc246d2395a681 /t/t9809-git-p4-client-view.sh
parent543987bd475abae502939eb3db9c6879fde09c88 (diff)
downloadgit-8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9.zip
git-8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9.tar.gz
git-8d93a5ac68d12a01681a0c2a8d2f799da5cb9fa9.tar.bz2
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>
Diffstat (limited to 't/t9809-git-p4-client-view.sh')
-rwxr-xr-xt/t9809-git-p4-client-view.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9809-git-p4-client-view.sh b/t/t9809-git-p4-client-view.sh
index 9642641..b0c6d43 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))