On Wed, 7 Feb 2007 15:11:39 +0000
Roy Marples <[EMAIL PROTECTED]> wrote:

> THE CONFIG FILE HAS TO BE PARSEABLE BY ANY SHELL

Well, to be precise, it has to be parse-able by whatever runscript (->
runscript.sh) uses to source it.  Currently that's hard-wired
to /bin/bash; you're suggesting it be hard-wired to /bin/sh instead -
but it could be configurable as an option to runscript:

#!/bin/runscript --shell=/bin/sh

> EVERY SHELL HAS TO BE PATCHED TO UNDERSTAND BASH ARRAYS
> 
> Simply put, this has to work where /bin/sh is any valid POSIX shell.
> 
> #!/bin/sh
> . /etc/conf.d/net

Another idea; have baselayout install different versions of
init.d/conf.d and default shell for runscript depending on USE flags

USE=posix -> install posix 'sh' versions of conf.d/init.d scripts, have
runscript default to /bin/sh

otherwise install the bash versions with runscript defaulting
to /bin/bash.

-- 
Kevin F. Quinn

Attachment: signature.asc
Description: PGP signature

Reply via email to