From nobody Sat Nov 18 09:07:24 2023 X-Original-To: stable@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 4SXSb74Bhkz50m77 for ; Sat, 18 Nov 2023 09:07:31 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2105.outbound.protection.outlook.com [40.92.18.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SXSb628qSz3YPC for ; Sat, 18 Nov 2023 09:07:30 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=YVjclwoQ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.18.105 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SXwDltjMrtRoCwr4Xwrw5e48TWE3xMW/vuG1hrkzSeOvo5HD8DlxdlV3/yd0DID4p9faZezJbFYyxA48frU0+P+V5v6SCK+zaedCXgQqucUjnqVt7r5wZTEEzhX803MU25WSMG/tgFzWuHb7AlF0M6M2GH8YibF8PRljEyyhspuMbt/AzDsAblY2fAafi8k5syxDD5AwpUaT8RvRypoKmPznVYXpiNR8/p7EJSYU7ILqYwuWEdD/ImQPgUEfU6+LUGHY9RXKoet5r3Rd1MDNlAw+bwsLoeIZw6n9JYYiQ+d6sWpOeVfMLyI+OsVZoc8kR0CabfALD77iyua00qmHng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ttQHBFcXtdcCqfkDwNMn9IV9qc3HSyQv3pxqwqLFlDY=; b=UNzdtjO0wve6jTS6Amnkv57ipXmuoGYcMTa71MVNNaVDPG7MnQ8pNhxEosCgyBF36kQ2PFltAW8YxuLbri6DSaXmxHKkVMrsfiPqssoB4jc6KIAKH1ym+cD2zw8LiGRjXyXmTfpLM9BmelZNLDlFmzKAkVXpl4K0Z+RJIj4d1+dCbMOdALH4sXEgJnWbDYSS0ugETN4ucZPQ7ttGQb8/5OPv5ijyhxnz4phFVaNqOKjkgXWuTeX0QsOh8jmB2r/LC2wvmgpLmHXL1aFX2J+CyYjSHM9yt3gTJXtpdjzwdYoLO5QgIHI/3yEnj8jNG6MYumwBb39GB+AuCCxzB3/2/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ttQHBFcXtdcCqfkDwNMn9IV9qc3HSyQv3pxqwqLFlDY=; b=YVjclwoQenmkhihg+rn7kjjb2+1/oaTV9h1OTP0nMdF+IABCVVIBhpXSDUUTeFyrQ2fwXrblUQwMgFFxfsNRhqanuZMoMuYXKlDkZ4kNqp9gb8HzBmdI9H//X2VdB0caE7UnkzXicS7EW/KeT2d2LFZE7qA/oBLW+s9P3JUI3jygiZ2UGjAr9U8o07BvdbzADBM4lAu6Ht2om0ZfExY8Ykm7aiSaoB0Vjjtrjf2/M3VWxkEAYXkjlfJz5GCjDkVtaOznzlMOTYjGi+GircwuqNnpAkvQKlCdvd5oISjtmYHWHLyHl7OeUaXy1O1U4qWvcBQ6Q1n99fmE3LuCSZnlNQ== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by DS0PR11MB8082.namprd11.prod.outlook.com (2603:10b6:8:157::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.23; Sat, 18 Nov 2023 09:07:27 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3%7]) with mapi id 15.20.7002.015; Sat, 18 Nov 2023 09:07:27 +0000 Message-ID: Date: Sat, 18 Nov 2023 02:07:24 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: csh to sh migration for root in RELENG_14 Content-Language: en-US To: stable@freebsd.org References: <6c6add3c-4a5e-4d84-9964-9a9448a36c95@sentex.net> <25943.49653.523313.53953@hergotha.csail.mit.edu> From: "Edward Sanford Sutton, III" In-Reply-To: <25943.49653.523313.53953@hergotha.csail.mit.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [nkyMDdKyd7iB37uwtP7M80y/RUPp16Gc] X-ClientProxiedBy: MN2PR08CA0027.namprd08.prod.outlook.com (2603:10b6:208:239::32) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <5cbd19c2-b2dd-c3a2-b485-ce9ba24fd996@hotmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|DS0PR11MB8082:EE_ X-MS-Office365-Filtering-Correlation-Id: afc7b148-2028-4e80-00f7-08dbe815c92e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8x+FuJ/oCoZanr9ReJaPSkB7uXz1dPOiNkmIuwXaLRC3h7UAMqlPOLhVkxxZgV6MnpKMJgPTOp6L2pEmBp1kWA8oIeGieUE0uoWT6nWpKublxzlToK6vjkWmQ1QlUfFPYGO7s6YzEhbu1t7bxRC3SgLp1CYpsQt/mw6XV4+8lLSZrL6gf9OkaD8qmMOjIgbiNQkezXSxnGf58A/u5yZqxt2d8g/COJHlGSDrFTPS7HFwqmPqP8Ulam+u/uFAFH0sQdnKOXj0/EBl2zAvJfkeG8DJei8L6kDQyDYnDhZOS749ebe2+mZOX2BXcfbWGZN2M/geyZQoQqESmQgWTvRgpyfjQt6i2vSEld246k5Aq4wyOqbGi7GQMvX8ovfzNqHbKVebNk0xDXSZgyiX64RBZA3loA3rQJwkLoo+zBIu8UIIpyDRHl/9uFMNx9/FuZGeFWLyTqzSnSZEjqiAd9Teg4YBAq9bTw+FLK9rtgpZA9kO6+YB7kb9hp2bnpxUVmrf8X4LAeyHavoAg5KRyslEAAVLKOQ+CAUIlKa42jFA1w5uMWaxZ7RpDhgtSsjXZtWt X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cElWcDc2dlNkcjdHZ3VjVktrNzlKc0dGMThRN0x4WlVBWmxBUTIydEdYeVpL?= =?utf-8?B?eHZ3OWhqSXd4OVdRUXNUc3A5aWZZZ3NwcGdNT0M0cEtkb3oxdk9ZZXVjaUw2?= =?utf-8?B?b3EwK2ZHV0sxMzdIT3RPYm51YVJHTzYvd3BubXMvb2NtN2dZMEx5ZjZkdjdJ?= =?utf-8?B?TDRHSzBETS9rTlF6QkNxS05kMFFGRENlaTVEZm5rTHBLZkEwOU13Y3VVTmp4?= =?utf-8?B?RGlBMXFGRjRuSjN3ZDNKRjhBb3VldFB0am01M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RnpoT1BEYnpVRFZqdkdoMis3MEJyY1BYdm1hRitPWWZrSm5D?= =?utf-8?B?dnBKelNDWGRVRk15L01BN2I0ZXF3NG53NGMzbm5qMDBuMXZ4QnZheXk3V2pL?= =?utf-8?B?TStodHEzM1luNmdQTkRkSFRvdGt6Q2dtSXpZRElaU0ZDSUQ0dU1ZVTlDVGd6?= =?utf-8?B?TFJJaW01RVRIQ3BCSkVlTjRWSWVzTlBFdTluamd3NUlsckxidHdTeFVnTDFC?= =?utf-8?B?ZmpyaEVlTTV6aXBtckovakFtbUhKMTQ1MWRUZ01sM0svN20ySm9xbCtRM2Jv?= =?utf-8?B?blJrQkxQci82MlNUL1ltK0JWZU9UU1BnRkUxby9SeTJ3VW1pamRQZlFyQTFX?= =?utf-8?B?MkxkdjJBVWpUUXIzTlpMQjZMZXV3a1pkSkQvZnFjSm5MVXI0c3JRTXhEYjI4?= =?utf-8?B?blhLNW5kQisxbkFvcVArdll0WmU3Q09mQUR5VHkxSEVUZlhIWGQxWVd3b2Uw?= =?utf-8?Q?dJilJcHiP6ECKiH1tYnvY2ArxBq9kyjhPsbuvUxLElwg=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: afc7b148-2028-4e80-00f7-08dbe815c92e X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2023 09:07:27.5980 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8082 X-Spamd-Result: default: False [-2.49 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[stable@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.18.105:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.18.105:from]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SXSb628qSz3YPC X-Spamd-Bar: -- On 11/17/23 12:41, Garrett Wollman wrote: > < said: > >> I am trying to bring my environment along from previous versions where >> csh was the default shell and now trying to get used to sh. In the past >> things like > >> sudo su > >> would pick up my settings in /root/.cshrc automatically. However, with >> sh I have to do > >> sudo su -l root > >> Is there a way to configure it so I dont need the -l as part of the su >> to get the same behavior ? > > See sh(1) section "Invocation", which describes how /bin/sh reads its > initialization files, and in particular, that (as POSIX specifies) > interactive non-login shells do not read any startup files unless the > environment variable `ENV` is set. This is stupid but required by the > standard. > > I would recommend changing root's shell to something that better suits > your needs: either change it back to csh, or install the appropriate > package and set it to bash or zsh, both of which read startup files > for all interactive shells, not just login shells. Though it was worse when upgrading using portupgrade and less likely to be an issue with packages, I would still consider trying to keep root's shell as a shell that is part of base and if I really wanted a different one then I would have a 3rd party shell get launched from a shell from base as part of the sign in process so it could 'fall back' to skipping the launch if it fails. This comes from having had issues with 3rd party shells not functioning for reasons such as it depending on a library that failed to install properly. I do not have my desktop boot into X automatically or use a graphical login manager for the same reason; problems are easier to fix when you can still log in successfully. I have not often had such issues, but I certainly have had them. > -GAWollman > >