From: Rasmus Villemoes Date: Fri, 25 Sep 2020 15:38:16 +0200 Subject: [PATCH 0/3] add "call" command In-Reply-To: <4118922.1601039395@gemini.denx.de> References: <20200925111942.4629-1-rasmus.villemoes@prevas.dk> <4b00225d-d960-4a14-9aec-110ddddf7f30@gmx.de> <4118922.1601039395@gemini.denx.de> Message-ID: <1048d7c9-08c6-ab74-42e9-329ecbfa470d@prevas.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 25/09/2020 15.09, Wolfgang Denk wrote: > Dear Heinrich Schuchardt, > > In message <4b00225d-d960-4a14-9aec-110ddddf7f30@gmx.de> you wrote: >> >> Further we cannot first introduce a command call and then eliminate it >> due to backward compatibility. We should decide on the final version >> beforehand. Please note that I never meant for f a b c to be an eventual replacement for call f a b c the latter syntax would continue to be accepted. And I'm personally completely fine with that being the _only_ way to call a function-defined-in-the-environment-with-positional-args, which also makes >> I am >> not sure if a built in command should take precedence over a variable of >> the same name or the other way round. a moot point. So can we instead discuss whether the "call" command is worth having at all. I notice that Wolfgang calls this a nice idea (thanks), but soft-NAKs it because he'd rather see all of hush updated before adding extra features. The thing is, I can't take that monumental task on me (especially with all the backwards-compatibility concerns there'd be, with various scripts in the wild that may have come to rely on U-Boot's hush parser's behaviour in corner cases), but doing cmd_call is about 100 lines of mostly stand-alone code. Rasmus