Skip to content

Commit

Permalink
git-p4: remove bash-ism in t9809
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pete Wyckoff authored and Junio C Hamano committed Feb 27, 2012
1 parent 543987b commit 8d93a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t9809-git-p4-client-view.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ client_view() {
#
check_files_exist() {
ok=0 &&
num=${#@} &&
num=$# &&
for arg ; do
test_path_is_file "$arg" &&
ok=$(($ok + 1))
Expand Down

0 comments on commit 8d93a5a

Please sign in to comment.