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=-9.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 3BB8CC11F68 for ; Fri, 2 Jul 2021 13:34:05 +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 3CD7B613B4 for ; Fri, 2 Jul 2021 13:34:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3CD7B613B4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 687F181E14; Fri, 2 Jul 2021 15:34:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AcFifVUo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8119281ED0; Fri, 2 Jul 2021 15:33:59 +0200 (CEST) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9928881668 for ; Fri, 2 Jul 2021 15:33:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qt1-x832.google.com with SMTP id h3so6590509qto.4 for ; Fri, 02 Jul 2021 06:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sngW4orXcQKNLkc31m/a85kBfCbM0lAZoel3SvYURHQ=; b=AcFifVUo7jGQaC4vJEnuY5PI1uS7UZnL3By76tSlaU27erBbbij2OmaFk0yUAUTXCW 2E1E7utAyHvGW1lF5JiISbV4U8xN7B2qUFrrsqF40LihQq8qgZ14vbgx4KJKlN8zUjJB T86AcDScA5DNxqU5NlD5NobDJt6ZqnQnfIx+1Y0fU5XMQSP1NtFE0dVm/V0W1EgGgSbf XnYb00ZvxJ+GcG0czvG+a44HE7dBTSSGQoRaaV0t4q6Wu1jZNTJqmcW/ChtfvG8k15x7 he3lXV1wQYydm0uBPEATvaVWn7IoKZxXIQ8doHyxJbq2y3FYT2li36Nb/jq2AHuVhs5e DLPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sngW4orXcQKNLkc31m/a85kBfCbM0lAZoel3SvYURHQ=; b=KQpNtMnOU5V23qMXXlBzFOOFDFeesllAtHY/ndRvLciTkM7QzdmGWuZfdzyphYAEC3 v9QIUfQilno2J+x2AJrGIFlH3uNyMAZ6YQ/R50wNOW4JGnqqUDwX3qmH9L+F3X+MZWOr +J2d0tukHZfTRe9rTa7zTTjj7fRLzFrI4CxxBDega674Ys1h2Q8udvCIRmUoMJYxTqsD FwkYUOy+XP05QLwfHRmlIouhXOo6pTCyMoLj/FgYHoZG2sHme+DlWim2jEe3xmPga4Fl bAXsjHmdsUs/+sVZzr8wh5WzI/vzWh5sHxzOMNzq3hWI3iXprNFnV2kv67y+rAcCJS// suVw== X-Gm-Message-State: AOAM532F6t246K6f+gIChpUfW6iZeBpoM+WDLZMcYW1Rz6jh2UyKg+Rx gClmva2x/XMgcTMbAzZ3j/4= X-Google-Smtp-Source: ABdhPJwBRw9z+7gjjTvAqO11uZBqUgd3wFnO4pCj5V7rmLoa89AO2SSEevk5k/ugybDbZuxqqzlWOA== X-Received: by 2002:ac8:1098:: with SMTP id a24mr5180804qtj.34.1625232835415; Fri, 02 Jul 2021 06:33:55 -0700 (PDT) Received: from [192.168.1.201] (pool-74-96-87-9.washdc.fios.verizon.net. [74.96.87.9]) by smtp.googlemail.com with ESMTPSA id y20sm1379851qkm.5.2021.07.02.06.33.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jul 2021 06:33:55 -0700 (PDT) From: Sean Anderson Subject: Re: [RFC PATCH 02/28] cli: Add LIL shell To: Wolfgang Denk Cc: u-boot@lists.denx.de, Tom Rini , =?UTF-8?Q?Marek_Beh=c3=ban?= , Simon Glass , Roland Gaudig , Heinrich Schuchardt , Kostas Michalopoulos References: <20210701061611.957918-1-seanga2@gmail.com> <20210701061611.957918-3-seanga2@gmail.com> <126700.1625223815@gemini.denx.de> Message-ID: Date: Fri, 2 Jul 2021 09:33:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <126700.1625223815@gemini.denx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 7/2/21 7:03 AM, Wolfgang Denk wrote: > Dear Sean, > > In message <20210701061611.957918-3-seanga2@gmail.com> you wrote: >> This is the LIL programming language [1] as originally written by Kostas >> Michalopoulos . LIL is a stripped-down TCL >> variant. Many syntax features are very similar to shell: > > 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 > 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). 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 load("mmc", mmcdev .. ":" .. mmcpart, loadaddr, image) which I think is a much larger deviation from existing syntax. --Sean