From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sat, 11 Aug 2012 19:44:02 +0200 Subject: [U-Boot] [PATCH V3 1/3] imx-common/cmd_resetmode.c: add imx resetmode command In-Reply-To: <50245F64.9090407@boundarydevices.com> References: <1344475594-10630-1-git-send-email-troy.kisky@boundarydevices.com> <502364FD.6020408@denx.de> <502405E9.7010207@boundarydevices.com> <50240FA6.9040009@boundarydevices.com> <5024287A.8070908@boundarydevices.com> <50245F64.9090407@boundarydevices.com> Message-ID: <502699E2.3040407@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 On 10/08/2012 03:09, Eric Nelson wrote: >> How difficult would it be for someone to implement a general "alias" >> command ? >> ie. 'alias bootto "resetmode $1 && reset"' >> > > It's usually a customer that asks the "How hard would it be?" question, > but you can almost get there like this: > > U-Boot> set mynewcommand "echo Hello" > U-Boot> $mynewcommand > Hello > U-Boot> $mynewcommand World > Hello World This does not work: you should issue "run $mynewcommand World" And this let me slowly remember at: http://www.denx.de/wiki/U-Boot/TaskHandleVarsLikeCommands I completely forgotten this issue, and I have never update the status of my patch. Is ther estill some interest on this or have I missed something and now is the behavior in shell as in your example ? Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================