What is bash-static used for?

What is the purpose of bash-static compared to regular bash? Is it good as a rescue shell or what is it good for?

You are probably referring to the .deb package bash-static which is a statically linked version of bash, which means that it is a stand-alone program that does not depend on anything else (especially libraries) on your disk.

I have used it on two different occasions:

  • Installed on servers so that I always have a working bash, even in catastrophic situations when ld.so or libc are not functioning (absent, corrupt, ill-configured, …)
  • Delivered to customers along with my own shell scripts, so that I’m sure they have the proper version of bash, since I was using some advanced features that were introduced with bash v4.3.
Answered By: xhienne
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.