Not a specific distro per se but I’m shocked by how many minified docker images do not include which I’ve wasted so much time trying to figure out why a build failed with some tool missing after I explicitly installed that tool only to find deep down in a script somewhere a tool=$(which tool) >/dev/null in there failing and eating the error message! Remember folks always whichwhich first to avoid such issues ;)
Not a specific distro per se but I’m shocked by how many minified docker images do not include
which
I’ve wasted so much time trying to figure out why a build failed with some tool missing after I explicitly installed that tool only to find deep down in a script somewhere atool=$(which tool) >/dev/null
in there failing and eating the error message! Remember folks alwayswhich which
first to avoid such issues ;)type -p
is a shell builtin though, and one character shorter :)Although you may prefer
tool=$(command -v tool)