Re: [lxc-devel] using posix shell instead of bash

2012-11-16 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > On Wed, 14 Nov 2012 09:54:58 -0600 > Serge Hallyn wrote: > > > Successful runs of > > https://code.launchpad.net/~serge-hallyn/+junk/lxc-test with your > > patches will also be reassuring. > > This is causing problems for me: > > if dist[0]

Re: [lxc-devel] using posix shell instead of bash

2012-11-16 Thread Natanael Copa
On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn wrote: > Successful runs of > https://code.launchpad.net/~serge-hallyn/+junk/lxc-test with your > patches will also be reassuring. This is causing problems for me: if dist[0] != "Ubuntu": print >>sys.stderr, "This test suite does not

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > On Wed, 14 Nov 2012 09:54:58 -0600 > Serge Hallyn wrote: > > > Quoting Natanael Copa (nc...@alpinelinux.org): > > forgot this... > > > > Would you be prepared for minor sacrifices to use posix compliant > > > shell scripts? > > > > Someone else

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > On Wed, 14 Nov 2012 09:54:58 -0600 > Serge Hallyn wrote: > > > (Note also that lxc-ls may be rewritten in python. Is that a problem > > for your use case?) > > well... The Alpine Linux base system is 6MB excluding kernel. I offer > to spend a da

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 13:50:54 -0500 "Michael H. Warfield" 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 de

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn wrote: > Quoting Natanael Copa (nc...@alpinelinux.org): forgot this... > > Would you be prepared for minor sacrifices to use posix compliant > > shell scripts? > > Someone else can jump in if they object, but I personally don't. Are > you willi

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 09:54:58 -0600 Serge Hallyn wrote: > (Note also that lxc-ls may be rewritten in python. Is that a problem > for your use case?) well... The Alpine Linux base system is 6MB excluding kernel. I offer to spend a day or so to save 700kb by getting rid of bash. and now you want

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Stéphane Graber
On 11/14/2012 01:50 PM, Michael H. Warfield wrote: > On Wed, 2012-11-14 at 09:54 -0600, Serge Hallyn wrote: >> Quoting Natanael Copa (nc...@alpinelinux.org): >>> Hi, >>> >>> I wonder if it there are any interest to make the scripts posix shell >>> compliant so they can run with for example busybox

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Michael H. Warfield
On Wed, 2012-11-14 at 09:54 -0600, Serge Hallyn wrote: > Quoting Natanael Copa (nc...@alpinelinux.org): > > Hi, > > > > I wonder if it there are any interest to make the scripts posix shell > > compliant so they can run with for example busybox ash and dash. > > > > I would like to provide proper

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > Hi, > > I wonder if it there are any interest to make the scripts posix shell > compliant so they can run with for example busybox ash and dash. > > I would like to provide proper LCX support for Alpine Linux, which by > default runs from tmpfs. It

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 14:04:43 +0100 Natanael Copa wrote: > @@ -18,10 +18,11 @@ > # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA > 02111-1307 USA > lxc_path=@LXCPATH@ > +program=${0##*/} > > usage() > { > - echo "usage: $(basename $0) [--active] [--] [LS_OPTIONS...]" > >&2 >

Re: [lxc-devel] using posix shell instead of bash

2012-11-14 Thread Natanael Copa
On Wed, 14 Nov 2012 08:40:39 +0100 Natanael Copa wrote: > I wonder if it there are any interest to make the scripts posix shell > compliant so they can run with for example busybox ash and dash. I should maybe add that I think the biggest challenge will be the longopts parsing. That said I have

[lxc-devel] using posix shell instead of bash

2012-11-13 Thread Natanael Copa
Hi, I wonder if it there are any interest to make the scripts posix shell compliant so they can run with for example busybox ash and dash. I would like to provide proper LCX support for Alpine Linux, which by default runs from tmpfs. It uses uclibc and busybox as the base system, which makes it v