Jonathan Nieder dixit:

>Thoughts?  Questions?  Advice?

Other shells would need to be changed to cope with that as well.
The situation is a bit tricky at the moment, because mksh also
contains code to manage a diversion, which only works if dash
doesn’t, though.

Worse, on upgrade from lenny to squeeze dash fails to install if
mksh is /bin/sh…

>A somewhat orthogonal task
>~~~~~~~~~~~~~~~~~~~~~~~~~~
>IV. Introduce a new package to take responsibility for the /bin/sh symlink.

I wonder whether this should be a shell or just an “empty” package…
on the other hand, mksh-static could be split into its own binary
package and do that. It’s small (unless built with eglibc, but I’m
working on getting klibc up to the task), statically linked, fast,
and can easily relinquish control of /bin/sh since it’s basically
mksh’s little brother, with respect to features etc.

No matter if it’s empty or not, I think that, still, all shells
(eligible for /bin/sh) would need to be changed at the same time
for this. On the upside, it could read the pre-existing /bin/sh
symlink at preinst time and keep it, whether it’s from a package
(dash or bash), a diversion (bash, dash, mksh), or manually set.

Actually, couldn’t some things be done in postinst using pre-depends,
to avoid needing C for the preinst “script”? (#!/bin/mysh instead
of #!/bin/sh then, as the files are unpacked.)


Anyway, for the record; while I may be able to point out some more
things to think of when designing a fix, I’m nowhere at a level of
Debian skill to do that myself (alone) as had been suggested. I’ll
gladly help though, if I can.

bye,
//mirabilos
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to