From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 25 Sep 2020 15:02:20 +0200 Subject: [PATCH 1/3] cli_hush.c: refactor handle_dollar() to prepare for cmd_call In-Reply-To: <20200925111942.4629-2-rasmus.villemoes@prevas.dk> References: <20200925111942.4629-1-rasmus.villemoes@prevas.dk> <20200925111942.4629-2-rasmus.villemoes@prevas.dk> Message-ID: <4118589.1601038940@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 Rasmus, In message <20200925111942.4629-2-rasmus.villemoes@prevas.dk> you wrote: > A later patch will add handling of $1 through $9 as well as $#, using > the same SPECIAL_VAR_SYMBOL handling as is currently used for $?. So > move that case to an explicit #ifdef __U_BOOT__ branch, and > consolidate a few of the #ifndef __U_BOOT__ cases, making it easier to > see the original hush code. I won't comment on these and the other patches - you know my opinion: instead of hacking the current code, we should 1) come up with a plan and 2) update. Please consider this a soft-NAK ;-) 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 "The good Christian should beware of mathematicians and all those who make empty prophecies. The danger already exists that mathematicians have made a covenant with the devil to darken the spirit and confine man in the bonds of Hell." - Saint Augustine