Skip to content

Commit

Permalink
tests/functional: Add count()
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Mar 25, 2024
1 parent 290072c commit 6221770
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/common/vars-and-functions.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ grepQuietInverse() {
! grep "$@" > /dev/null
}

# Return the number of arguments
count() {
echo $#
}

trap onError ERR

fi # COMMON_VARS_AND_FUNCTIONS_SH_SOURCED

0 comments on commit 6221770

Please sign in to comment.