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=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, 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 7F7C3C433F5 for ; Tue, 14 Sep 2021 18:10:31 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DDBD610CE for ; Tue, 14 Sep 2021 18:10:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3DDBD610CE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 16B0460710; Tue, 14 Sep 2021 18:10:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aYOBLO0Ls0WU; Tue, 14 Sep 2021 18:10:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 74EB96071C; Tue, 14 Sep 2021 18:10:29 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 51F9F1BF990 for ; Tue, 14 Sep 2021 18:09:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4095D403B8 for ; Tue, 14 Sep 2021 18:09:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T6POwoObc12t for ; Tue, 14 Sep 2021 18:09:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by smtp2.osuosl.org (Postfix) with ESMTPS id 412B1403A4 for ; Tue, 14 Sep 2021 18:09:53 +0000 (UTC) Received: (Authenticated sender: peter@casa-korsgaard.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 68682100004 for ; Tue, 14 Sep 2021 18:09:50 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.92) (envelope-from ) id 1mQCsP-0007RP-Sj for buildroot@buildroot.org; Tue, 14 Sep 2021 20:09:49 +0200 Resent-To: buildroot@buildroot.org Resent-From: Peter Korsgaard Resent-Date: Tue, 14 Sep 2021 20:09:49 +0200 Resent-Message-ID: <87fsu7111u.fsf@dell.be.48ers.dk> X-From-Line: nobody Mon Sep 13 15:38:34 2021 From: Peter Korsgaard To: Krzysztof Kanas References: <20210902112848.41512-1-kkanas@fastmail.com> Date: Mon, 13 Sep 2021 15:38:34 +0200 In-Reply-To: <20210902112848.41512-1-kkanas@fastmail.com> (Krzysztof Kanas's message of "Thu, 2 Sep 2021 13:28:50 +0200") Message-ID: <87mtogzjc5.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Subject: Re: [Buildroot] [PATCH v2 1/1] package/environment-setup/environment-setup: add zsh X-BeenThere: buildroot@lists.buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@lists.buildroot.org Sender: "buildroot" >>>>> "Krzysztof" == Krzysztof Kanas writes: > environment-setup used BASH_SOURCE which is bash specific and empty > variable for zsh (and other shell's). > Zsh Uses $0. Unfortunately POSIX is not specifying how exactly $0 > should behave when in sourced (or using special dot utility). So other > shell support have to be implemented in different manner. > Signed-off-by: Krzysztof Kanas > --- > Changes in v2: > - fix shell detection logic > - change commit comment Committed to 2021.02.x, 2021.05.x and 2021.08.x, thanks. -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@lists.buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot