From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 26 Sep 2020 10:51:30 +0200 Subject: [PATCH 0/3] add "call" command In-Reply-To: <99821acf-b921-2c06-05b8-dd32058f28f2@gmx.de> References: <20200925111942.4629-1-rasmus.villemoes@prevas.dk> <4b00225d-d960-4a14-9aec-110ddddf7f30@gmx.de> <4118922.1601039395@gemini.denx.de> <99821acf-b921-2c06-05b8-dd32058f28f2@gmx.de> Message-ID: <4185559.1601110290@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heinrich, In message <99821acf-b921-2c06-05b8-dd32058f28f2@gmx.de> you wrote: > > For me this could be realized by enhancing the run command to allow: > > run varname1 varname2 ... varnameN --args argv1 argv2 argv3 > > Arguments argv1, argv2, ... are passed to the script identified by the > last variable (varnameN). Nice idea! Only we should do a better syntax (options preceeding argument), i. e. run [ --args argv ] varname1 varname2 ... where argv would be the name of a variale to hold the arguments (as a comma (?) separated list) ? Do you have an idea how the "script" would pull out the arguments from that variable? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de What was sliced bread the greatest thing since?