From: Wolfgang Denk Date: Mon, 23 Apr 2012 10:39:37 +0200 Subject: [U-Boot] 'run' no longer aborts on an error, can someone please verify In-Reply-To: <4F9506AA.4000604@exertus.fi> References: <20120421205158.67291204A81@gemini.denx.de> <4F932CEC.30808@gmail.com> <4F94EBE4.6060203@exertus.fi> <4F9506AA.4000604@exertus.fi> Message-ID: <20120423083937.B0867200261@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 Timo, In message <4F9506AA.4000604@exertus.fi> you wrote: > Hi again, > > On 23.04.2012 08:43, Timo Ketola wrote: > ... > > I took a quick glance over command/main.c.... > > common/main.c, of course > > > 1341 rc = cmd_process(flag, argc, argv, &repeatable); > > This might fix it: > > - rc = cmd_process(flag, argc, argv, &repeatable); > + if (cmd_process(flag, argc, argv, &repeatable)) > + rc = -1; I confirm this fixes the issue. Tested on TQM5200S. Can you please send a proper patch with SoB line etc. ? Simon, can you then please send a formal ACK to that patch? Thanks in advance. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel 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 Ninety-Ninety Rule of Project Schedules: The first ninety percent of the task takes ninety percent of the time, and the last ten percent takes the other ninety percent.