From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8263CC07E97 for ; Sat, 3 Jul 2021 19:23:25 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 02EAF61919 for ; Sat, 3 Jul 2021 19:23:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 02EAF61919 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E8BE0829BA; Sat, 3 Jul 2021 21:23:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625340202; bh=6l83geoWR63oYDHrMtNl5FqC1UFU9FrqHsHkbBeOLUI=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qiCjTjwps3dojF/f/UcJRonosdD1nDZ3fWHI3EMFl3aP8cXJLMlEWzYV24k2p29Pt 6J0Akdw1AxqcdnFHfHL+sC+2pkjaidVae5oQ93UxbSQqeAeExqn6PCRIB4R73U73o9 Nq6J4Xu7sed1kBK6935UBCc7CiqwBUZIIApgA6njIlyaph9W3iWGyNFZWxvu1bQrVV OjR0HVLVcFdMI/2lGPgXxC89iJ2u0ddE29GTDpTs7Uu+Ld9feORcAXYcELe+OAziYN 5rQxQgO9GD+b3Wc1JjquY2ivZuARzjKFdDxKndxWNrsRYeMUWcF2IMK2ZlvLW1oNU8 e5NirS9VD68GQ== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 805E281019 for ; Sat, 3 Jul 2021 21:23:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625340200; bh=6l83geoWR63oYDHrMtNl5FqC1UFU9FrqHsHkbBeOLUI=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=vMZvRpf2ZklA+0UkBUc/MFACL95p0ZJnZ9Qd/Z+w2Hw4gOlotD0Qg6YqLLfQbf0KS Btlk/b5enxyxpwcV94FZ/ZEkVPsUspMWrdok/I8l0CKg6rE47RYojIQDDKQkCToWmw 9mhcgmT8DSZMryWWgmvOcnasd6pDw6u/iDc0KXb8x1miJC9OKXeHFKKstdI7N2NbGB sWKoYQnKXN9iycqNN13X+MPJhSnMQglBHS1gdntq5NUUlfSlFC0PoglTB3Majehp85 B6605g28/fLSnehoZOmM0YYUOYMmsrUYojPj0kV1LjGQrfdUtmAeKA1qq3TSk4NnYg ODKh3g67VAxBA== Received: by janitor.denx.de (Postfix, from userid 108) id 286C1A029C; Sat, 3 Jul 2021 21:23:20 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 44A61A0120; Sat, 3 Jul 2021 21:23:11 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id E2E5C1E2038; Sat, 3 Jul 2021 21:23:10 +0200 (CEST) To: Sean Anderson cc: u-boot@lists.denx.de, Tom Rini , =?UTF-8?Q?Marek_Beh=c3=ban?= , Simon Glass , Roland Gaudig , Heinrich Schuchardt , Kostas Michalopoulos From: Wolfgang Denk Subject: Re: [RFC PATCH 02/28] cli: Add LIL shell MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: References: <20210701061611.957918-1-seanga2@gmail.com> <20210701061611.957918-3-seanga2@gmail.com> <126700.1625223815@gemini.denx.de> Comments: In-reply-to Sean Anderson message dated "Fri, 02 Jul 2021 09:33:54 -0400." Date: Sat, 03 Jul 2021 21:23:10 +0200 Message-ID: <16737.1625340190@gemini.denx.de> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Dear Sean, In message you wrote: > > > > Do you have a list of the exact differencec between LIL and a > > standard shell? > > For a partial list, see > > [1] https://github.com/Forty-Bot/lil/commits/master Hm, this list of commits is not exactly helpful, I'm afraid. Where _exactly_ should I look? > > I wonder, if we deviate from standard shell syntax anyway, we could > > also have a look at lua, for example? > > I also looked at lua (see the cover letter), but I rejected it based on > size constraints (eLua was around the size of U-Boot itself). I have to admit that I never tried myself to build a lua based system, optimizing for minimal size - but I'm surprised by your results. > Because of how often the shell is used to debug things, I wanted the > candidate I picked to have similar syntax to the existing shell. For > example, > > load mmc ${mmcdev}:${mmcpart} $loadaddr $image > > is a valid command in both Hush and LIL. Compare with lua, which might > express the above as Yes, I'm aware of this. But then, it would add another level of powerful scripting capabilities - and as it was already suggested before, _replacing_ the standard shell is only one way to use lua - another would be to use lua as a command that can be started from the shell when needed - assuming you want to pay the price in terms of size. 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@denx.de They're usually so busy thinking about what happens next that the only time they ever find out what is happening now is when they come to look back on it. - Terry Pratchett, _Wyrd Sisters_