[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 1/3] Support both custom scripts and scripted applets
From:       Ron Yorston <rmy () pobox ! com>
Date:       2018-11-14 18:54:53
Message-ID: 5bec6f7d.PGCijQClRrghHdy2%rmy () pobox ! com
[Download RAW message or body]

Denys Vlasenko wrote:
>I propose to treat both of these types scripts the same way.
>
>I have a feeling this will result in simpler code.
>
>Let me know if you foresee difficulties with this approach.

I suppose my concern is that it risks losing the distinctive features
of the two types of script.

My view is that 'scripted applets' should require configuration in the
same way as native applets:

- it should be possible to enable and disable them individually
- they should be listed (in alphabetical order!) by 'busybox --help' and
  'busybox --list'
- they should be installed by 'busybox --install'
- they should respond to 'busybox --help name' and 'name --help'

The infrastructure for all of this is already present.

Custom scripts on the other hand should require no configuration, apart
from just dropping them in the 'embed' directory.  If 'embed' is empty
the code to support custom scripts won't be present in the binary.

I'd prefer to maintain this distinction and use the same 'embedded
scripts' machinery to support deployment of both types of script.

But if all embedded scripts are to be treated alike I think the
implementation should tend towards that of native applets, even if
that raises the bar for people who want to deploy custom scripts.

Ron
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic