Skip to content

Commit 8d93a5a

Browse files
Pete Wyckoffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 543987b commit 8d93a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9809-git-p4-client-view.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ client_view() {
3131
#
3232
check_files_exist() {
3333
ok=0 &&
34-
num=${#@} &&
34+
num=$# &&
3535
for arg ; do
3636
test_path_is_file "$arg" &&
3737
ok=$(($ok + 1))

0 commit comments

Comments
 (0)