
On 01/07/2021 08.15, Sean Anderson wrote:
This sets the shell to LIL when CONFIG_LIL is enabled. Repeated commands are not supporteed. Neither are partial commands a la Hush's secondary prompt. Setting and getting environmental variables is done through callbacks to assist with testing.
This all looks very interesting, thanks for doing this!
Re this patch, is there some way LIL and HUSH could coexist, with HUSH then being the initial shell, and one could then enter a "lil shell" with the command "lil", just as I can start a busybox shell from bash by saying "busybox sh". That could make it a bit easier for playing around with initially.
I have no idea how hard that is to do with Kconfig. Perhaps make LIL selectable by itself, then have a hidden symbol LIL_SHELL which is "default y if LIL && !HUSH_PARSER" or something like that.
Rasmus