Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15489

Re: Feature request: profile.d equivalent for non-login shells

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Eli Schwartz <eschwartz@archlinux.org>
Newsgroups gnu.bash.bug
Subject Re: Feature request: profile.d equivalent for non-login shells
Date Thu, 10 Oct 2019 00:26:37 -0400
Lines 73
Approved bug-bash@gnu.org
Message-ID <mailman.155.1570681617.9715.bug-bash@gnu.org> (permalink)
References <b55874243158a37fb81e196106032054@ifohancroft.com> <374cee84-651a-7731-8834-d5d3001f5201@archlinux.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="goj8QycreUhlEPMyQzrVXgwzG92cQxru2"
X-Trace usenet.stanford.edu 1570681618 25837 209.51.188.17 (10 Oct 2019 04:26:58 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1570681600; bh=7Y+D4XADdiO6A9sK2zCZwgZEaa/HwLSAdaHsOmPHUGI=; h=Subject:To:References:From:Date:In-Reply-To; b=K6n5zaVg7bVWh5sr4CCX/ddRMySUOwEZabvPrrm0gE7Xfzx1J8zfoBYC0YwnxRz0i K5na6m1eWsQv8nl/Bmo+u7oBMYB61prX79Lgt3joS5+mpJOooY82qdiSUunQz2LKdC N5aDT/7GW5YALlaXkPYwcZ+K+ytDdTHZI6+MpzOYhncyQNFiom7ZsXeC0s626WWEY2 jV7IRXcZS/4XS8S54Xd0Phb/7qYE/w1uh2Q4aXPS9V0rlJYeti7eqhdsWQWC6WD5jG BBgrjNlKwQN2koFHxYHbrqm2ZEVjJMmyBRzojuWoexfeTnY5jUS++84nfRlhoITo6o 8jyr8BKu1mHMscO8d4La1E7k6G7K5Q3uIpBYprb8JxYy0Glv96S9KEGeM9Hf02+EtC IT6PgfQsw0tRYYZe3oDUOdNE0tLOsZ7yteVU+qHJEPC37vJb7dh0cuM6jXKJFfI5Q4 Vaf/QcSE7JmhkByn60dX5gJi1eDH4lvTP4A3Jim70Rr61THs/tVLQqqxbNdVhxLmYS Sp1vPn1wumaN01TEfDcM4mnOdwJTHcKOWUWLPXgh8vPqx1lX7fpcQfx45r0Mf29EaB 5wqVLiDi0cBlJDVgda1Kq8M3uo4nagztSbSbfw8YG7EDXe4dQJvi189MD7phWutjFj oDQL4RN6A/VxrgUXbupE2YIM=
X-Clacks-Overhead GNU Terry Pratchett
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1
In-Reply-To <b55874243158a37fb81e196106032054@ifohancroft.com>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 88.198.91.70
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <374cee84-651a-7731-8834-d5d3001f5201@archlinux.org>
X-Mailman-Original-References <b55874243158a37fb81e196106032054@ifohancroft.com>
Xref csiph.com gnu.bash.bug:15489

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 10/10/19 12:20 AM, lists@ifohancroft.com wrote:
> Hi Everyone!
> 
> I'm IFo.
> 
> I would like to request the addition of a bashrc.d folder in /etc that
> gets sourced by /etc/bashrc for non-login shells. A non-login shells
> equivalent to profile.d
> 
> This would make for a very elegant and beautiful solution for when
> software needs a script to be sourced for a non-login shell

profile.d isn't a thing, except inasmuch as your Linux distro most
likely includes code in /etc/profile to check for files in
/etc/profile.d/ and source those too.

So, feel free to add the same for loop in your /etc/bashrc, in order to
source /etc/bashrc.d/* files.

I don't think there is anything to be done in the bash project itself.

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Feature request: profile.d equivalent for non-login shells Eli Schwartz <eschwartz@archlinux.org> - 2019-10-10 00:26 -0400

csiph-web