From nobody Sat Oct 14 20:03:39 2023 X-Original-To: bugs@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 4S7DpN5zHxz4xBhj for ; Sat, 14 Oct 2023 20:03:40 +0000 (UTC) (envelope-from bugzilla-noreply@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 4S7DpN4q5jz3Btx for ; Sat, 14 Oct 2023 20:03:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697313820; a=rsa-sha256; cv=none; b=eWWx3FrAs7HRZQf1GYrYx7RkPEnS24zDUPAKwmqrrrqPnZy+ync6jFKyVix/rOCDTuAU5n TMWK6xQRtdG9IstQjfLTXTrFMa0kxyBZtCUX5lzrjFlFYrFnvRTyy0uH827UkFLp/DYGWf kJn0SRdjSnKf4+SnTo6qznklvl7+beMBpPnMdg0+G9zp501xMs+xEI3o0REw+QYSoDX05i 0ZgHbbZIP2bDlAfLTgEi4zvut+Z90QwiBOrYyQ6eFaARIlwxj4Yk4wW2dofovl9nGXNqNA HSKBZ58bjdNdsVMbr0qWJIBl53mlsoPYu4VMgjltqZBR7fo/jNSmSFO0GEjS3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697313820; 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: in-reply-to:in-reply-to:references:references; bh=Gn/BtRDCkwU/W5/1kPgfolzWny9J4VZvQqcHH819vMM=; b=ae8iqGHy3G7r1xzc0v+qk1k/zlaO3U2mmn9qROmu2etVAit3vbiTtv9vRtC+b8MwBUYDzz PyI+zvqkX0VduKHMbqZCDy8RHkoq+W9cS0qtMCTCho/TfMT4CpR0Snio67jEiPOmshE/mr +UrxiEsIRtiVo/CGz+CithjzKKTtdT1n/aZCTTtglMNiNuiclj0wTFoGHMAwaqPzCb4wHs TCqlCEZQtrgUUy7BIDTG9VXI496WHDAzi+G356ml9EvLQOikgEMYJLReV6+Qnwx27h/Rdo Lzfeap/fuGAQtnazeZQTyRv1FgCzSgg7gLjXhEVn21NxKnbFAAUQRkcLvsIbGw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4S7DpN3w9Nzk6F for ; Sat, 14 Oct 2023 20:03:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 39EK3eTC052245 for ; Sat, 14 Oct 2023 20:03:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39EK3e4M052244 for bugs@FreeBSD.org; Sat, 14 Oct 2023 20:03:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274280] Incompatible default shell configuration Date: Sat, 14 Oct 2023 20:03:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jilles@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274280 --- Comment #1 from Jilles Tjoelker --- The reasoning for exporting ENV was to make sure interactive non-login shel= ls have the user's settings such as aliases and shell options, while not exten= ding the startup files from the POSIX standard. However, this indeed has the pro= blem that the ENV file must be readable by all POSIX-style shells. Perhaps the cleanest solution is to read, in interactive shells, a file with some hard-coded name from the user's home directory if ENV is not set. In an interactive login shell, this file would be read after .profile (if .profile did not set ENV). The standard dot.profile can then be changed to stop sett= ing ENV. The hard-coded name could be something like .shrc or something new like .freebsdshrc. By the way, bash's decision to use the ENV file only when it is invoked as = sh or in POSIX mode (in either case, only in interactive shells, as specified = by POSIX) helps it here. --=20 You are receiving this mail because: You are the assignee for the bug.=