From nobody Sun Oct 09 07:13:38 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MlYFR3DvFz4f09V; Sun, 9 Oct 2022 07:14:19 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp6.goneo.de (smtp6.goneo.de [85.220.129.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MlYFP62Jbz4HYl; Sun, 9 Oct 2022 07:14:17 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from hub1.goneo.de (hub1.goneo.de [85.220.129.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp6.goneo.de (Postfix) with ESMTPS id 353D610A32E6; Sun, 9 Oct 2022 09:14:15 +0200 (CEST) Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id 0EE2510A1EB6; Sun, 9 Oct 2022 09:14:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1665299646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SK739LamTlG8acOZixyPo7QrQN/wFSjN4oo13Z08Vy8=; b=SbjfidkW7xnjKO0juJ36naK9xQ2LhvvQb9dk2A93fh9L/aWf9rVfwunLDb+NQIQsshas5a 64fS4/6nyDugCg6N0tlBupoW2357Wr1uQptw24pcRY+46AxoQAjL42eLRHX/qlj6i36Cgp I7Zp4IkLWDJlGrfFX2BFkFe+OGq2SgY/cwRL5ArzCDQNwPQwKG3VqRmu/TwIjH4Ky2j2X/ x8P/F77SBvA/cbz3m6C3hCAoc8AHYupEif51cuCSizQa35SZELkg5JlZrebeix5c/+x5CF V1/4zXi89a0tNEqAUj7rpCNgoqOPl4PYBQcfC9XeJZaecg+fvco+hyi3MFD7nw== Received: from thor.intern.walstatt.dynvpn.de (dynamic-089-012-145-101.89.12.pool.telefonica.de [89.12.145.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id BDA6C10A1EA5; Sun, 9 Oct 2022 09:14:05 +0200 (CEST) Date: Sun, 9 Oct 2022 09:13:38 +0200 From: FreeBSD User To: Dag-Erling =?UTF-8?B?U23DuHJncmF2?= Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 497cdf9673ec - main - sh: read more profile files. Message-ID: <20221009091405.171bde4f@thor.intern.walstatt.dynvpn.de> In-Reply-To: <202210012131.291LVIY8044703@gitrepo.freebsd.org> References: <202210012131.291LVIY8044703@gitrepo.freebsd.org> Organization: walstatt-de.de List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-UID: dcaec0 X-Rspamd-UID: a9758e X-Rspamd-Queue-Id: 4MlYFP62Jbz4HYl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=SbjfidkW; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@walstatt-de.de has no SPF policy when checking 85.220.129.31) smtp.mailfrom=freebsd@walstatt-de.de X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[85.220.129.31:from]; MLMMJ_DEST(0.00)[dev-commits-src-all@FreeBSD.org,dev-commits-src-main@FreeBSD.org]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Am Sat, 1 Oct 2022 21:31:18 GMT Dag-Erling Sm=C3=B8rgrav schrieb: > The branch main has been updated by des: >=20 > URL: https://cgit.FreeBSD.org/src/commit/?id=3D497cdf9673ec53d59634bb7886= 2cd8dea3d5c155 >=20 > commit 497cdf9673ec53d59634bb78862cd8dea3d5c155 > Author: Dag-Erling Sm=C3=B8rgrav > AuthorDate: 2022-09-09 13:08:43 +0000 > Commit: Dag-Erling Sm=C3=B8rgrav > CommitDate: 2022-10-01 21:30:56 +0000 >=20 > sh: read more profile files. > =20 > Differential Revision: https://reviews.freebsd.org/D36505 > MFC after: 1 month > --- > bin/sh/profile | 20 ++++++++++++++++++++ > etc/mtree/BSD.root.dist | 2 ++ > 2 files changed, 22 insertions(+) >=20 > diff --git a/bin/sh/profile b/bin/sh/profile > index b77c8787c79d..afcbeaf4110b 100644 > --- a/bin/sh/profile > +++ b/bin/sh/profile > @@ -12,3 +12,23 @@ > # msgs -q > # Allow terminal messages > # mesg y > + > +# Load each file in /etc/profile.d/, then /usr/local/etc/profile, then > +# each file in /usr/local/etc/profile.d/. > +_loaded=3D${_loaded:-/etc/profile} > +export _loaded > +for _dir in /etc /usr/local/etc ; do > + for _file in "${_dir}"/profile "${_dir}"/profile.d/* ; do > + if [ -f "${_file}" ] ; then > + case :${_loaded}: in > + *:"${_file}":*) > + ;; > + *) > + _loaded=3D"${_loaded:+${_loaded}:}${_file}" > + . "${_file}" > + ;; > + esac > + fi > + done > +done > +unset _loaded _dir _file > diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist > index 8bea31212217..5ee5da8ee149 100644 > --- a/etc/mtree/BSD.root.dist > +++ b/etc/mtree/BSD.root.dist > @@ -84,6 +84,8 @@ > .. > ppp > .. > + profile.d > + .. > rc.conf.d > .. > rc.d >=20 According to this commit, I took the liberty opening a PR (id=3D266913) bec= ause some ports, like lang/gawk and x11-toolkits/vte3, install their SH and CSH set of shell conf= iguration files into ${LOCALBASE}/etc/profile.d/, i.e. vte.{sh|csh}.=20 The proposed/commited /etc/profile includes also *.csh files, which trigger= s some disturbing error messages during a full login (i.e. su - ) and the list of those messa= ges increase with the number of unfitting shell configuration files. I do not have a general solution, maybe someone more enlighted can take a l= ook at this. Thanks and kind regards, O. Hartmann --=20 O. Hartmann