On Wed, May 29, 2019 at 02:04:10AM +1000, G. Branden Robinson wrote:
> In fact, the bash-doc package contains dozens of examples. However, I
> don't see anything named "rm". (I'm looking at bash-doc 5.0-4 in Debian
> 10, "buster".)
Looks like they're supposed to be in bash-builtins.
wooledg:~$ apt-cache search --names-only bash
bash - GNU Bourne Again SHell
bash-builtins - Bash loadable builtins - headers & examples
bash-doc - Documentation and examples for the GNU Bourne Again SHell
bash-static - GNU Bourne Again SHell (static version)
[...]
However, it doesn't appear that all of them are being included:
wooledg:~$ dpkg -L bash-builtins | grep rm
/usr/lib/bash/rmdir
/usr/share/doc/bash/examples/loadables/rm.c
/usr/share/doc/bash/examples/loadables/rmdir.c
Might be better to ask about this on a Debian mailing list.