• rattking@lemmy.ml
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    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 which which first to avoid such issues ;)

    • Gamma@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      type -p is a shell builtin though, and one character shorter :)

      Although you may prefer tool=$(command -v tool)