Bug#269573: [Pkg-shadow-devel] Bug#269573: {add|remove}-shell should be recoded in C

Alexander Gattin Alexander Gattin <arg@online.com.ua>, 269573@bugs.debian.org
Sat, 16 Apr 2005 02:31:03 +0300


Hi!

On Fri, Apr 15, 2005 at 07:06:24PM +0200, Christian Perrier wrote:
> In #269573, the bug submitter complains that he cannot remove the bash
> package, because its prerm

No, _postrm_ script calls remove-shell (just looked
into it at the moment).

> script calls.....remove-shell, which is a shell script.

Bullshit! /var/lib/dpkg/info/bash.postrm is _itself_
a script:

> #! /bin/sh -e
> 
> if [ "$1" = "purge" ]; then
>   rm -f /etc/bash_completion
>   rmdir --ignore-fail-on-non-empty /etc/bash_completion.d
> fi
> 
> if [ -x /usr/sbin/remove-shell ]; then
>   /usr/sbin/remove-shell /bin/bash
>   /usr/sbin/remove-shell /bin/rbash
> fi
> ...

Or I don't understand something obvious? Seems that
bash wouldn't be removed inbetween `#! /bin/sh -e` ;)
and `/usr/sbin/remove-shell /bin/bash`

P.S. I can try removing bash at Monday (at work).
Will get much fun, I think. :) But some shell should be
present on system -- maybe _real Korn shell_ then? ;)
-- 
WBR,
xrgtn