2009/7/19 Rehan <rehan.k...@dsl.pipex.com>: > > -----Original Message----- > From: gobolinux-devel-boun...@lists.gobolinux.org > [mailto:gobolinux-devel-boun...@lists.gobolinux.org] On Behalf Of Lucas C. > Villa Real > Sent: 19 July 2009 09:31 > To: gobolinux-devel@lists.gobolinux.org > Subject: Re: [gobolinux-devel] Bootstrap issues > > > > On Wed, Jul 15, 2009 at 6:23 PM, Rehan<rehan.k...@dsl.pipex.com> wrote: > >>> 2) Next was the function Get_System_Paths function in >>> /Programs/Scripts/Functions/GoboLinux. BootStrap was error-ing on this >>> but >>> continuing on. This was fixed by re-writing the function, as suggested by >>> detsch on irc, to : >>> >>> Function Get_System_Paths () { >>> Parameters “$1” programpath >>> find "${programpath}" -mindepth 2 | while read path >>> do >>> Programs_To_System_Path "${path}" >>> done >>> >>> I’m not sure if this has implications for other scripts? > >>At which point you noticed the Get_System_Paths error? Starting a new >>FS with the Subversion snapshot seems to be ok. > > Again the 1.1 version was choking on the process substitution used in that > function (very early on, can’t remember exactly, sorry ). The documentation > for process substitution says that it’s not entirely portable between shells > so the above might be a better way to construct that function for improved > compatibility.. >
We don't try to be portable (with some exceptions) but to use bash-only code. It's better if the scripts that source and make use of the functions to explicitly specify bash as its interpretator (instead of /bin/sh). -- /Jonas _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel