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

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



On Sun, 28 Sep 2014, Russell Stuart wrote:

>   - pipefail,

mksh has “set -o pipefail” and the PIPESTATUS array.

>   - local variables, 

mksh has them, of course. ksh93 only has them in
functions declared with the “function” keyword,
and lacks a default “alias local=typeset” to make
it useful.

Note that Debian Policy §10.4 prescribes local
support for /bin/sh.

>   - array variables.

Sure, in all other shells.

> If dash had those features conversion could almost be mechanical.

You really really should be looking at replacing any
ash variant with mksh. It’s not that much bigger (at
least if you add -DMKSH_SMALL to CPPFLAGS and build
with klibc or dietlibc or so), but much saner.

bye,
//mirabilos
-- 
<Uli> Du hast Recht.
<Uli> Du hast Recht!


Reply to: