Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-08 Thread Wolfgang Denk
Dear Sean, In message <43880bf0-baa6-0cb2-80fe-0fe50d43b...@gmail.com> you wrote: > > > Tcl is a horror of a language for anything that is above trivial > > level. > > Can you please elaborate on this? You've made this claim several times, > but haven't explained your reasoning for it. A long, lo

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-08 Thread Tom Rini
On Thu, Jul 08, 2021 at 07:19:05AM +0200, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Jul 7, 2021 at 4:48 PM Marek Behun wrote: > > > > Dear Tom, Sean, Wolfgang and others, > > > > here are some of my opinions for this discussion > > > > - I agree with Wolfgang that there are far better o

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Michael Nazzareno Trimarchi
Hi On Wed, Jul 7, 2021 at 4:48 PM Marek Behun wrote: > > Dear Tom, Sean, Wolfgang and others, > > here are some of my opinions for this discussion > > - I agree with Wolfgang that there are far better options than > a Tcl-like shell, if we want to add another language > > - I also think that in

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Sean Anderson
On 7/6/21 3:44 AM, Wolfgang Denk wrote: Dear Tom, In message <20210705191058.GB9516@bill-the-cat> you wrote: This is I think the hard question. A draw of the current shell is that it it looks and acts like bash/sh/etc, for at least basic operations. That's something that's comfortable to a lar

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Marek Behun
Dear Tom, Sean, Wolfgang and others, here are some of my opinions for this discussion - I agree with Wolfgang that there are far better options than a Tcl-like shell, if we want to add another language - I also think that instead of adding another language, it is more preferable to improve t

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Wolfgang Denk
Dear Tom, In message <20210707141418.GZ9516@bill-the-cat> you wrote: > > Have you validated one of those exceedingly complex boot scripts with a > modern hush (and some fakery for u-boot commands) ? No. No, I havent. I also don't claim that I know all the warts and issues with our old hus, but

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Tom Rini
On Wed, Jul 07, 2021 at 04:10:43PM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20210707135839.GW9516@bill-the-cat> you wrote: > > > > As I've said a few times in this thread, this not being an sh-style > > interpreter is a strike against it. And if we're going to insist on a > > bug-

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Wolfgang Denk
Dear Tom, In message <20210707135839.GW9516@bill-the-cat> you wrote: > > As I've said a few times in this thread, this not being an sh-style > interpreter is a strike against it. And if we're going to insist on a > bug-for-bug upgrade to our hush (so that all of the hugely complex > existing scr

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Tom Rini
On Wed, Jul 07, 2021 at 10:15:34AM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20210706154346.GT9516@bill-the-cat> you wrote: > > > > I'm pretty confident that exactly zero people have written complex > > U-Boot scripts and then been happy about the experience. > > I have seen many U

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Tom Rini
On Wed, Jul 07, 2021 at 10:15:32AM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20210706145420.GQ9516@bill-the-cat> you wrote: > > > > > Updating to a current version would fix this, in an almost 100% > > > backward compatible way. > > > > Let us cut to the chase then. Who is going to

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Tom Rini
On Wed, Jul 07, 2021 at 09:46:20AM -0400, Sean Anderson wrote: > > On 7/7/21 4:15 AM, Wolfgang Denk wrote: > > Dear Tom, > > > > In message <20210706154346.GT9516@bill-the-cat> you wrote: > > > > > > I'm pretty confident that exactly zero people have written complex > > > U-Boot scripts and then

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Sean Anderson
On 7/7/21 4:15 AM, Wolfgang Denk wrote: Dear Tom, In message <20210706154346.GT9516@bill-the-cat> you wrote: I'm pretty confident that exactly zero people have written complex U-Boot scripts and then been happy about the experience. I have seen many U-Boot scripts which were pretty complex

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Sean Anderson
On 7/6/21 12:09 PM, Kostas Michalopoulos wrote: On 7/6/2021 6:43 PM, Tom Rini wrote: I don't know if it's right either. But drawing on my comment just now and above about complex boot scripts, I also don't know if "it's sh but quirky and incomplete, WHY DOESN'T THIS WORK RIGHT" is better than "

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Michael Nazzareno Trimarchi
Hi On Tue, Jul 6, 2021 at 4:57 PM Simon Glass wrote: > > Hi Michael, > > On Tue, 6 Jul 2021 at 01:53, Michael Nazzareno Trimarchi > wrote: > > > > On Tue, Jul 6, 2021 at 9:46 AM Wolfgang Denk wrote: > > > > > > Dear Sean, > > > > > > In message you wrote: > > > > > > > > >>> foo() {

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Wolfgang Denk
Dear Tom, In message <20210706154346.GT9516@bill-the-cat> you wrote: > > I'm pretty confident that exactly zero people have written complex > U-Boot scripts and then been happy about the experience. I have seen many U-Boot scripts which were pretty complex, but working absolutely reliably. > TC

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-07 Thread Wolfgang Denk
Dear Tom, In message <20210706145420.GQ9516@bill-the-cat> you wrote: > > > Updating to a current version would fix this, in an almost 100% > > backward compatible way. > > Let us cut to the chase then. Who is going to port a modern version of > hush over to U-Boot, and maintain it? If we fork a

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Kostas Michalopoulos
On 7/6/2021 6:43 PM, Tom Rini wrote: I don't know if it's right either. But drawing on my comment just now and above about complex boot scripts, I also don't know if "it's sh but quirky and incomplete, WHY DOESN'T THIS WORK RIGHT" is better than "It's TCL? I don't know that, let me hit stackove

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Tom Rini
On Tue, Jul 06, 2021 at 08:57:23AM -0600, Simon Glass wrote: > Hi Michael, > > On Tue, 6 Jul 2021 at 01:53, Michael Nazzareno Trimarchi > wrote: > > > > On Tue, Jul 6, 2021 at 9:46 AM Wolfgang Denk wrote: > > > > > > Dear Sean, > > > > > > In message you wrote: > > > > > > > > >>> foo() {

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Tom Rini
On Tue, Jul 06, 2021 at 09:44:20AM +0200, Wolfgang Denk wrote: > Dear Tom, > > In message <20210705191058.GB9516@bill-the-cat> you wrote: > > > > > > foo=bar set foo bar > > > > echo $foo echo $foo > > > > > > > > if [ 1 -gt 2 ]; thenif {1

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Simon Glass
Hi Michael, On Tue, 6 Jul 2021 at 01:53, Michael Nazzareno Trimarchi wrote: > > On Tue, Jul 6, 2021 at 9:46 AM Wolfgang Denk wrote: > > > > Dear Sean, > > > > In message you wrote: > > > > > > >>> foo() { proc foo {first second} { > > > >>> echo $1 $2

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Tom Rini
On Tue, Jul 06, 2021 at 09:46:43AM +0200, Wolfgang Denk wrote: > Dear Sean, > > In message you wrote: > > > > >>> foo() { proc foo {first second} { > > >>> echo $1 $2 echo $first $second > > >>> } } > > > > This is

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Michael Nazzareno Trimarchi
On Tue, Jul 6, 2021 at 9:46 AM Wolfgang Denk wrote: > > Dear Sean, > > In message you wrote: > > > > >>> foo() { proc foo {first second} { > > >>> echo $1 $2 echo $first $second > > >>> } } > > > > This is not possible. We o

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Wolfgang Denk
Dear Sean, In message you wrote: > > >>> foo() { proc foo {first second} { > >>> echo $1 $2 echo $first $second > >>> } } > > This is not possible. We only have eval (run) as of today. I view adding > functions as one of the

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-06 Thread Wolfgang Denk
Dear Tom, In message <20210705191058.GB9516@bill-the-cat> you wrote: > > > > foo=bar set foo bar > > > echo $foo echo $foo > > > > > > if [ 1 -gt 2 ]; then if {1 > 2} { > > > echo a echo a > > > else

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-05 Thread Sean Anderson
On 7/5/21 3:53 PM, Tom Rini wrote: On Mon, Jul 05, 2021 at 03:47:47PM -0400, Sean Anderson wrote: On 7/5/21 3:10 PM, Tom Rini wrote: On Sat, Jul 03, 2021 at 09:33:30PM +0200, Wolfgang Denk wrote: Dear Sean, In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: For a partia

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-05 Thread Tom Rini
On Mon, Jul 05, 2021 at 03:47:47PM -0400, Sean Anderson wrote: > On 7/5/21 3:10 PM, Tom Rini wrote: > > On Sat, Jul 03, 2021 at 09:33:30PM +0200, Wolfgang Denk wrote: > > > Dear Sean, > > > > > > In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: > > > > > > > > > For a partia

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-05 Thread Sean Anderson
On 7/5/21 3:10 PM, Tom Rini wrote: On Sat, Jul 03, 2021 at 09:33:30PM +0200, Wolfgang Denk wrote: Dear Sean, In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: For a partial list, see [1] https://github.com/Forty-Bot/lil/commits/master Whoops, looks like I completely m

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-05 Thread Tom Rini
On Sat, Jul 03, 2021 at 09:33:30PM +0200, Wolfgang Denk wrote: > Dear Sean, > > In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: > > > > > For a partial list, see > > > > > > [1] https://github.com/Forty-Bot/lil/commits/master > > > > Whoops, looks like I completely misread

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-05 Thread Simon Glass
Hi, On Sat, 3 Jul 2021 at 13:33, Wolfgang Denk wrote: > > Dear Sean, > > In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: > > > > > For a partial list, see > > > > > > [1] https://github.com/Forty-Bot/lil/commits/master > > > > Whoops, looks like I completely misread what yo

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-03 Thread Wolfgang Denk
Dear Sean, In message <8bbdb7a1-5085-a3b7-614f-12ae9aee8...@gmail.com> you wrote: > > > For a partial list, see > > > > [1] https://github.com/Forty-Bot/lil/commits/master > > Whoops, looks like I completely misread what you were asking here. I > don't have an exhaustive list of differences, but

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-03 Thread Wolfgang Denk
Dear Sean, In message you wrote: > > > > Do you have a list of the exact differencec between LIL and a > > standard shell? > > For a partial list, see > > [1] https://github.com/Forty-Bot/lil/commits/master Hm, this list of commits is not exactly helpful, I'm afraid. Where _exactly_ should I l

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-02 Thread Sean Anderson
On 7/2/21 9:33 AM, Sean Anderson wrote: On 7/2/21 7:03 AM, Wolfgang Denk wrote: Dear Sean, In message <20210701061611.957918-3-sean...@gmail.com> you wrote: This is the LIL programming language [1] as originally written by Kostas Michalopoulos . LIL is a stripped-down TCL variant. Many syntax

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-02 Thread Sean Anderson
On 7/2/21 7:03 AM, Wolfgang Denk wrote: Dear Sean, In message <20210701061611.957918-3-sean...@gmail.com> you wrote: This is the LIL programming language [1] as originally written by Kostas Michalopoulos . LIL is a stripped-down TCL variant. Many syntax features are very similar to shell: Do

Re: [RFC PATCH 02/28] cli: Add LIL shell

2021-07-02 Thread Wolfgang Denk
Dear Sean, In message <20210701061611.957918-3-sean...@gmail.com> you wrote: > This is the LIL programming language [1] as originally written by Kostas > Michalopoulos . LIL is a stripped-down TCL > variant. Many syntax features are very similar to shell: Do you have a list of the exact differenc

[RFC PATCH 02/28] cli: Add LIL shell

2021-06-30 Thread Sean Anderson
This is the LIL programming language [1] as originally written by Kostas Michalopoulos . LIL is a stripped-down TCL variant. Many syntax features are very similar to shell: => echo Hello from $stdout Hello from serial,vidconsole LIL supports functions, scoped variables, and comman