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 DD107138330 for ; Thu, 1 Sep 2016 19:03:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 449A3E0B49; Thu, 1 Sep 2016 19:03:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E46A2E0B49 for ; Thu, 1 Sep 2016 19:03:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D065340831 for ; Thu, 1 Sep 2016 19:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 80EDF245A for ; Thu, 1 Sep 2016 19:03:16 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1472756463.89f852f823cad807dc360325ec92817e583835e8.williamh@gentoo> Subject: [gentoo-commits] proj/baselayout:master commit in: etc/ X-VCS-Repository: proj/baselayout X-VCS-Files: etc/profile X-VCS-Directories: etc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 89f852f823cad807dc360325ec92817e583835e8 X-VCS-Branch: master Date: Thu, 1 Sep 2016 19:03:16 +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-Archives-Salt: 7efea61a-04d7-403f-b029-183734d91d6d X-Archives-Hash: 1d1b0a336c6598f0fa5f9f01895d6910 commit: 89f852f823cad807dc360325ec92817e583835e8 Author: Martin Vath mvath de> AuthorDate: Thu Sep 1 18:24:48 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Sep 1 19:01:03 2016 +0000 URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=89f852f8 etc/profile: Make set -u work for the profile X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=555762 etc/profile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/profile b/etc/profile index 11336fb..e085efa 100644 --- a/etc/profile +++ b/etc/profile @@ -22,15 +22,15 @@ umask 022 # There's no real reason to exclude sbin paths from the normal user, # but it can make tab-completion easier when they aren't in the # user's PATH to pollute the executable namespace. -if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then - PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}" +if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then + PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin${ROOTPATH:+:}${ROOTPATH-}" else - PATH="/usr/local/bin:/usr/bin:/bin:${PATH}" + PATH="/usr/local/bin:/usr/bin:/bin${PATH:+:}${PATH-}" fi export PATH unset ROOTPATH -if [ -n "${BASH_VERSION}" ] ; then +if [ -n "${BASH_VERSION-}" ] ; then # Newer bash ebuilds include /etc/bash/bashrc which will setup PS1 # including color. We leave out color here because not all # terminals support it.