tests/functional: Add count()

This commit is contained in:
Robert Hensing 2024-03-24 15:04:06 +01:00
parent 290072ca1e
commit 6221770c9d

View file

@ -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