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 0B889C07E97 for ; Sat, 3 Jul 2021 19:33:45 +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 0E3D56191F for ; Sat, 3 Jul 2021 19:33:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E3D56191F 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 AC460829C3; Sat, 3 Jul 2021 21:33:41 +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=1625340821; bh=ZZIWGqUzTSe6OGHmtITR93vKM3hJPM5JlG2pN8yWd68=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=KP4ujK6/21gs8QmLhJaBLXyuveLHLauGE9eWumxcZxY/+NklZaWrKg0UAwRsdrr+0 8dEa4TmyotlaT84naNSBtyZ234+upJHmCNmei+PrawdIe3Y844hhLL9FHxYYY/8Xdk 9h79TpQX6lCqhtJP84GMh3AvtILUM9oFe5DSPkvRb4u0Sh720AddRHRnFcf04tiSyZ cips5o7zEdpWgfyasLbmW9oKLMi+uqFnW4/4c8a0r4q7W8NnD5LvQxfq3Sy2BkSjJb kdOGS6vwN2uN7imLZ4eQXyQaDh9IdIuj4zIXr/Pd0Xa2W4L/3/T4v4yrCZumumuPRj Gd9VnPOugc4Ag== 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 EADF681019 for ; Sat, 3 Jul 2021 21:33:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625340820; bh=ZZIWGqUzTSe6OGHmtITR93vKM3hJPM5JlG2pN8yWd68=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=bKQRcQ2aClT+SjM35SfaWNiOsXyBInLSyhxgVYdWCIdqQcLgbMFXQQTlFuWo4DIER QhCj499B3t6p07sbXxaBjtXoBNQaNv7qO+kiSvpSoKA0fZsSTNiYvXCmBEw6JhekpQ cVFBE7NCfKoqzjljtihraOaJzf1asedQRAr1uiqzMc2cOS+zgA401EY4ZELRVf4faF x9islTVlSwUttzlaPTZmRBgpRPkfpyWmhCc9wkAvGyxFh7ROssHCiflPYzdg3jKEJe 0u7CJpy+Q5AKbB3og4jvCs8nu/i0hydFysylYbov/mC0XyQ88LGV0oRKObYzL1WHH0 beOh5REAKnP4Q== Received: by janitor.denx.de (Postfix, from userid 108) id 8BC46A02BD; Sat, 3 Jul 2021 21:33:39 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id D84C0A021F; Sat, 3 Jul 2021 21:33:30 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 9E4071E2038; Sat, 3 Jul 2021 21:33:30 +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: <8bbdb7a1-5085-a3b7-614f-12ae9aee8e8b@gmail.com> References: <20210701061611.957918-1-seanga2@gmail.com> <20210701061611.957918-3-seanga2@gmail.com> <126700.1625223815@gemini.denx.de> <8bbdb7a1-5085-a3b7-614f-12ae9aee8e8b@gmail.com> Comments: In-reply-to Sean Anderson message dated "Fri, 02 Jul 2021 22:12:23 -0400." Date: Sat, 03 Jul 2021 21:33:30 +0200 Message-ID: <18831.1625340810@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 <8bbdb7a1-5085-a3b7-614f-12ae9aee8e8b@gmail.com> you wrote: > > > For a partial list, see > > > > [1] https://github.com/Forty-Bot/lil/commits/master > > Whoops, looks like I completely misread what you were asking here. I > don't have an exhaustive list of differences, but here are some similar > things expressed in both languages: > > sh tcl > > foo=bar set foo bar > echo $foo echo $foo > > if [ 1 -gt 2 ]; then if {1 > 2} { > echo a echo a > else } { > echo b echo b > fi } > > foo() { proc foo {first second} { > echo $1 $2 echo $first $second > } } > > for file in $(ls *.c); do foreach file [glob *.c] { > echo $file echo $file > done } > > fact() { > if [ $1 -eq 0 ]; then > echo 1 > else > echo $(($1 * $(fact $(($1 - 1))))) > fi > } > > proc fact {n} { > if {$n} { > expr {$n * [fact [expr {$n - 1}]]} > } { > return 1 > } > } > > Hopefully this gives you a bit of a feel for the basic differences. Well, I know TCL, and there has been a zillion of reasons to move _from_ that language many, many years ago. Intoducing this as new "shell" language in U-Boot does not look attractive to me. Actually, it gives me the creeps. 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 Drawing on my fine command of language, I said nothing.