From nobody Mon Oct 03 14:36:01 2022 X-Original-To: dev-commits-src-main@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 4Mh3Kt1vyXz4ctFh; Mon, 3 Oct 2022 14:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mh3Kt1Smbz43QN; Mon, 3 Oct 2022 14:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664807762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVopMkbXUPFUx+48nIujSbzm2NZUDDdwAhJ+nG/h4iw=; b=W0R8gK/XUUYNCr1/effsOSlViioa7IM2chaWXpoJNYRn9UhJDYCFBOXf0V4ABx12/MNbeb 0nRa2VJHmWM0pMBjl1pqHYbgF7AUhw+RI0JB0PSjRUORRDEPYOEYFynx51s/fBqlRTsNOT 3iJv9+cDifABQRtuc9o/+EsGV82NdKHmj3tYPMqqDgZT4V8P8k2Oryr7OtMdIIU0OniykF lmJJ1cQ1QDopHrek2pIpLR4Y2hjKoJV4FZtxlRX3iZeLR/jLmIEXCe7lTRxHs0NIDldOoH E/PCSLBEkbHghbBd3agb9vY2HYkIk4i4QCcuVcncgQaN7JA3acQ4zFoo5DBVjg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mh3Kt0X5fzF9x; Mon, 3 Oct 2022 14:36:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 293Ea1q7009828; Mon, 3 Oct 2022 14:36:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293Ea1Xp009827; Mon, 3 Oct 2022 14:36:01 GMT (envelope-from git) Date: Mon, 3 Oct 2022 14:36:01 GMT Message-Id: <202210031436.293Ea1Xp009827@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= Subject: git: d3890a547d20 - main - sh: when loading profile, skip obvious scratch files. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d3890a547d201d1f5043e51baa406ac9d5d3a60a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664807762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cVopMkbXUPFUx+48nIujSbzm2NZUDDdwAhJ+nG/h4iw=; b=asvu6wte/cSjk9eOEK2EFGNFcWjQ8simMUWthYGnNW99LEO5fM+Jcgj5eNcHHp87LVa8+D uDoQxwilj6HuD7adAx7OfIkLZhDc3gY1GCMS8ixvc6oVGaEekdToa9YYFtuO61P/YIwYCk tp1teNSfLqnzuAzfZ1l28y2eALuL76khaNh1BfqZYYDwJKBxy1PnTMJDNlibWzKCLF+gcQ y3coyKAYywrSrfOoBZlczMSxmiAxtMebxcOxI90Sf7Sel+Vv9wDGW7qg4F6cJn35qxJOSH xxLFIgFkYZ2niPeVTvvUmWvJLjvn8KvM6aVf7Bwd4zcZLrunMg4iHk5xJba/iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664807762; a=rsa-sha256; cv=none; b=Lf6kYC7i+m31fI98oqEhjLS2hf6CwBn3gugIHXOs0/aZjY2Mec7uRjYRUosYM9+U3pFbEP bFeHurzhEputZFsz8n8KYMRc6FXcA/JTKU1J41eCOvhn0Rr4Eyr76e7NU3oVk2+aE37mEN vXnVnS0hmUpDs+gSOWAJsBqd95b4/okYSJZbsUJ3HXSWxS7cOF/JBWPXVBH5ad7+hT4mt0 uxqs6hWIs7xMd/zu4fV5ObpRJuyekPqNIK9C/GqfFOrkwlqPckDp3fvopf8PqG7EMbblaT o5jX0xAlEn+PCJH2QHF2iYtKMVjcsS4zXRxYt9hdgu/ZqrqRHbLMFgb6d8S69A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=d3890a547d201d1f5043e51baa406ac9d5d3a60a commit d3890a547d201d1f5043e51baa406ac9d5d3a60a Author: Dag-Erling Smørgrav AuthorDate: 2022-10-02 12:23:28 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2022-10-03 14:35:51 +0000 sh: when loading profile, skip obvious scratch files. Differential Revision: https://reviews.freebsd.org/D36856 --- bin/sh/profile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/sh/profile b/bin/sh/profile index afcbeaf4110b..ac6acced6596 100644 --- a/bin/sh/profile +++ b/bin/sh/profile @@ -19,6 +19,11 @@ _loaded=${_loaded:-/etc/profile} export _loaded for _dir in /etc /usr/local/etc ; do for _file in "${_dir}"/profile "${_dir}"/profile.d/* ; do + case ${_file} in + *[~#]|*.OLD|*.bak|*.orig|*,v) + continue + ;; + esac if [ -f "${_file}" ] ; then case :${_loaded}: in *:"${_file}":*)