[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash exorcism experiment ('bug' 762923 & 763012)

On Wed, 1 Oct 2014, Russell Stuart wrote:

> The only reason I ported things to dash is /bin/sh is now linked to it,
> which in view makes it the standard shell.  Every script starting with
> #!/bin/sh must work with.  If I can't get it working because of a

This is wrong. Every script starting with #!/bin/sh must work with a
POSIX shell that supports “local” and “echo -n” (Policy §10.4). There
are currently three implementations of that in Debian, maybe four
(posh). Do not port to dash. dash has bugs, and I’ve personally found
a dashism in Ubuntu’s checkroot.sh (by running hardy with mksh as
/bin/sh). Also, dash supports more nōn-standard things than, say,
posh (or heirloom-sh, which lacks “local” though).

[16:04:33] bkix: "veni vidi violini"
[16:04:45] bkix: "ich kam, sah und vergeigte"...

Reply to: