[lxc-devel] using posix shell instead of bash

Natanael Copa ncopa at alpinelinux.org
Wed Nov 14 21:50:14 UTC 2012


On Wed, 14 Nov 2012 13:50:54 -0500
"Michael H. Warfield" <mhw at WittsEnd.com> wrote:

> Converting from bash to ash (which is very sh like) isn't too bad if
> you are not making extensive use of arrays and string functions.  It's
> probably doable (having done it myself with some fairly sophisticated
> bash scripts dealing with LUKS encryption and file systems).  I would
> start by trying to run it under busybox ash and see what breaks.

I looked over the scripts this morning. I could not find any arrays,
one or 2 bash specific variable expansion, and one pipe redirect iirc.
The biggest thing was getopt longopts but I have a plan for that (as i
posted in the diff). The code is also clean and nice. I would not
suggested this if the changes would been intrusive or if the code was
messy.

-nc




More information about the lxc-devel mailing list