From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2CF8D1382C5 for ; Sun, 21 Mar 2021 16:34:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D4B4E0841; Sun, 21 Mar 2021 16:34:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FE65E0821 for ; Sun, 21 Mar 2021 16:34:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7913335D44 for ; Sun, 21 Mar 2021 16:34:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 34BA25B4 for ; Sun, 21 Mar 2021 16:34:06 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1616343064.be45bf5a5b1177231b1e1068ef02cff51c6257a1.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/zsh/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/zsh/files/zprofile-4 X-VCS-Directories: app-shells/zsh/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: be45bf5a5b1177231b1e1068ef02cff51c6257a1 X-VCS-Branch: master Date: Sun, 21 Mar 2021 16:34:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 33400b00-b358-4cfd-8b20-590a8fae9abd X-Archives-Hash: d378f55099abc668a623b094624a2de6 commit: be45bf5a5b1177231b1e1068ef02cff51c6257a1 Author: Lars Wendler gentoo org> AuthorDate: Sat Mar 20 09:18:24 2021 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun Mar 21 16:11:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be45bf5a app-shells/zsh: Minor improvements in zprofile Signed-off-by: Lars Wendler gentoo.org> app-shells/zsh/files/zprofile-4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app-shells/zsh/files/zprofile-4 b/app-shells/zsh/files/zprofile-4 index 2e33b11f491..b92c245784d 100644 --- a/app-shells/zsh/files/zprofile-4 +++ b/app-shells/zsh/files/zprofile-4 @@ -2,7 +2,7 @@ # Load environment settings from profile.env, which is created by # env-update from the files in /etc/env.d -if [ -e /etc/profile.env ] ; then +if [[ -e /etc/profile.env ]] ; then . /etc/profile.env fi @@ -22,7 +22,7 @@ umask 022 # It is intentional in the following line to use || instead of -o. # This way the evaluation can be short-circuited and calling whoami is # avoided. -if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then +if [[ "$EUID" = "0" ]] || [[ "$USER" = "root" ]] ; then # Check to make sure ROOTPATH is sane before we use it. # https://bugs.gentoo.org/656400 if [[ :${ROOTPATH}: == *:/usr/sbin:* ]]; then @@ -35,7 +35,7 @@ unset ROOTPATH shopts=$- setopt nullglob for sh in /etc/profile.d/*.sh ; do - [ -r "$sh" ] && . "$sh" + [[ -r "${sh}" ]] && . "${sh}" done unsetopt nullglob set -$shopts