From owner-freebsd-questions@freebsd.org Thu Aug 20 20:35:07 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 A09813C7ECD for ; Thu, 20 Aug 2020 20:35:07 +0000 (UTC) (envelope-from freebsd-questions@m.gmane-mx.org) Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXbxQ6ySvz3yhX for ; Thu, 20 Aug 2020 20:35:06 +0000 (UTC) (envelope-from freebsd-questions@m.gmane-mx.org) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1k8rH6-0005d8-25 for freebsd-questions@freebsd.org; Thu, 20 Aug 2020 22:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ottavio Caruso Subject: Re: Bash Does Not Source /etc/profile Date: Thu, 20 Aug 2020 21:34:59 +0100 Message-ID: References: <0a5901d67721$02a62f80$07f28e80$@gmail.com> <5641a50a-e43c-1c3c-7759-8578dd8bd871@dreamchaser.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.1.1 In-Reply-To: <5641a50a-e43c-1c3c-7759-8578dd8bd871@dreamchaser.org> Content-Language: en-GB X-Rspamd-Queue-Id: 4BXbxQ6ySvz3yhX X-Spamd-Bar: +++++++++ X-Spamd-Result: default: False [9.48 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; GREYLIST(0.00)[pass,meta]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.93)[0.928]; HFILTER_HOSTNAME_5(3.00)[static.214.254.202.116.clients.your-server.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.55)[0.552]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_REJECT(2.00)[yahoo.com : SPF not aligned (relaxed), No valid DKIM,reject]; FORGED_SENDER(0.30)[ottavio2006-usenet2012@yahoo.com,freebsd-questions@m.gmane-mx.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_NEQ_ENVFROM(0.00)[ottavio2006-usenet2012@yahoo.com,freebsd-questions@m.gmane-mx.org]; MAILMAN_DEST(0.00)[freebsd-questions] X-Spam: Yes 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:35:07 -0000 On 20/08/2020 21:03, Gary Aitken wrote: > 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: > A copy is not necessary. Actually, rewording my original reply, I would just create a ~/.bash_profile and a .bashrc and source files from there if necessary. -- Ottavio Caruso