From owner-freebsd-questions@freebsd.org Thu Aug 20 20:05:04 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F14433C7816 for ; Thu, 20 Aug 2020 20:05:04 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXbGl6ydXz3g4H for ; Thu, 20 Aug 2020 20:05:03 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 07KK52lw042780; Thu, 20 Aug 2020 14:05:02 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) From: Gary Aitken Subject: Re: Bash Does Not Source /etc/profile To: Ottavio Caruso , freebsd-questions@freebsd.org References: <0a5901d67721$02a62f80$07f28e80$@gmail.com> Reply-To: freebsd@dreamchaser.org Message-ID: <5641a50a-e43c-1c3c-7759-8578dd8bd871@dreamchaser.org> Date: Thu, 20 Aug 2020 14:03:33 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Thu, 20 Aug 2020 14:05:02 -0600 (MDT) X-Rspamd-Queue-Id: 4BXbGl6ydXz3g4H X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-0.88 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_SPAM_SHORT(0.21)[0.206]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.79)[-0.790]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2020 20:05:05 -0000 On 8/20/20 12:42 PM, Ottavio Caruso via freebsd-questions wrote: > On 20/08/2020 19:37, Drew Tomlinson wrote: >> I performed an binary upgrade from 12.0-p3 to 12.1-p8 and >> recompiled all ports. My shell is set to /usr/local/bin/bash in >> /etc/passwd. One thing that's puzzling is that /etc/profile is no >> longer sourced when I log in. However, if I source /etc/profile >> after I log in, there are no errors. >> >> I have verified my shell is both login and interactive with these >> code snippets I found on the web: >> >> [drew@blackcloud ~]$ shopt -q login_shell && echo 'Login shell' || >> echo 'Not login shell' Login shell [drew@blackcloud ~]$ [[ $- == >> *i* ]] && echo 'Interactive' || echo 'Not interactive' Interactive >> >> What else should I check? > > Copy ~/.profile to ~/.bash_profile and source /etc/profile from > there. I don't *think* a copy should be necessary: $ strings $(which bash) | grep profile noprofile /etc/profile ~/.profile ~/.bash_profile $ strings $(which bash) | grep shrc ~/.bashrc But to the original question, why are you expecting errors? Gary