Adam D. Barratt wrote:

> The key thing is that if the move to dash-as-default - or an upgrade of
> dash whilst it is the default shell - fails, that should not leave the
> system without a working /bin/sh.  Having it not be a shell script seems
> a reasonable why of achieving that. :-)

Yes, makes sense.

>> if /bin/bash
>> is missing, aren't we in deep trouble anyway?
>
> Yes.  dash's preinst (in 0.5.5.1-7) currently has a /bin/sh shebang,
> however.

So how about something like this, for some peace of mind while
experimenting?

In the initial bootstrap, both dash and bash are unpacked before
either preinst runs.
---
diff --git a/debian/changelog b/debian/changelog
index 673c363..c3d33a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dash (0.5.5.1-7.1) experimental; urgency=low
+
+  * debian/dash.preinst: change shebang line to #!/bin/bash.
+
+ -- Jonathan Nieder <jrnie...@gmail.com>  Sun, 17 Oct 2010 01:58:20 -0500
+
 dash (0.5.5.1-7) unstable; urgency=low
 
   [ Raphael Geissert ]
diff --git a/debian/dash.preinst b/debian/dash.preinst
index 6553e2d..4fdbb0d 100644
--- a/debian/dash.preinst
+++ b/debian/dash.preinst
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 set -e
 
 divert() {
-- 



-- 
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