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 24, 2024
1 parent 38ba96d commit 51af227
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 51af227

Please sign in to comment.