```testssl.sh``` is a bash script, and the fixed dependencies matches with the used command line tools.
bash-3.2 is the minimum requirement.
[ ${BASH_VERSINFO[0]} -le 3 ] && [ ${BASH_VERSINFO[1]} -le 1 ] && printf "\n\033[1;35m Minimum requirement is bash 3.2. You have $BASH_VERSION \033[m\n\n" >&2 && exit $ERR_BASH
The following deps are taken from this function:
check_base_requirements() {
local binary=''
local whitelist=' hexdump grep awk sed '
for binary in 'hexdump' 'dd' 'grep' 'awk' 'tr' 'sed' 'wc' 'date' 'cat' 'ps' 'kill' 'head' 'tail' 'dirname'; do
if ! type -p "${binary}" &> /dev/null; then
fatal "You need to install ${binary} for this program to work" $ERR_RESOURCE
* app-alternatives/awk: it's compatible with any awk version, it has workarounds for gawk
* sys-apps/coreutils - uses:
- /usr/bin/cat
- /usr/bin/date
- /usr/bin/dd
- /usr/bin/dirname
- /usr/bin/head
- /usr/bin/tail
- /usr/bin/tr
- /usr/bin/tty
- /usr/bin/wc
* sys-apps/grep - uses:
- /bin/grep
* sys-apps/sed - not included in RDEPEND, always available thanks to PMS
* sys-apps/util-linux - uses:
- /usr/bin/hexdump
* sys-libs/ncurses - it doesn't link with any library (slot not needed), uses:
- /usr/bin/tput
* sys-process/procps - uses:
- /bin/kill
- /bin/ps
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/42658
Closes: https://github.com/gentoo/gentoo/pull/42658
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>