From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=96.73.9.1; helo=muon.bluestop.org; envelope-from=rebecca@bluestop.org; receiver=edk2-devel@lists.01.org Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 09318211CCD5A for ; Thu, 21 Feb 2019 21:13:06 -0800 (PST) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id B415C81C52; Thu, 21 Feb 2019 22:14:00 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bluestop.org; s=mail; t=1550812440; bh=JFb/CR0oSr3zH34l5x+i0iISatyXRvKUlKdqO3ansOU=; h=From:To:Cc:Subject:Date:From; b=RSS2+Ke0fhFRE9Z1givM5T1QREWS/zbWF1lt3Zlm/oBtCy1PfIILHEwqiAfLwbpAD Iy5fFaq1sdp/6Es1vebmhpX1rFCDvp/mRIIssnv+MeRfjJt/pzk5OSansQu56W9G1S VKtIWSxckQyYfUkTbzH5AKgvFn53aG0yN6cngEqY= Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jK9d-bMgx-ko; Thu, 21 Feb 2019 22:13:59 -0700 (MST) Received: from photon.int.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Thu, 21 Feb 2019 22:13:59 -0700 (MST) From: Rebecca Cran To: edk2-devel@lists.01.org Date: Thu, 21 Feb 2019 22:12:52 -0700 Message-Id: <20190222051253.51931-1-rebecca@bluestop.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [PATCH] BaseTools: Convert PosixLike scripts to sh, reduce duplication and fix some bugs in edksetup.sh and BuildEnv X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 05:13:07 -0000 Content-Transfer-Encoding: 8bit To make it easier to use EDK2 on systems other than Linux, where the default shell might not be bash, I'd like to convert the shell scripts to use POSIX sh where possible. edksetup.sh and BuildEnv remain bash scripts, but I hope to convert them to sh in a future changeset. I did see the argument against using $0 in http://mywiki.wooledge.org/BashFAQ/028, but I'm not sure anyone using EDK2 will run into problems the article describes. I checked the scripts with shellcheck.