From nobody Mon Sep 11 14:26:17 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 4RkptL2fC4z4tR3x for ; Mon, 11 Sep 2023 14:26:18 +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 4RkptK72Z6z3Dsw for ; Mon, 11 Sep 2023 14:26:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694442378; a=rsa-sha256; cv=none; b=K2u92H3jMB05oMB/Y5xUeqt11LhJdswG0kkudeLrOnnlMh2JfS/nl3SB82lDhW3fqgy6Sw hqgC7n51FD6+UEmeiHVw8W/OBfDWTUkOolKYe5xOszcq2yKIdCqttf2QgN8B5m6+S/87Cx B6thKY+o7GVI1iHpJ/O4u8CV/1oL4JGKRNR+w933ZXAzgsxyWAblsHliufseZPygvGpm70 uy9YWeo8pRwacK4MJfDz4pn7/9mgFxgxKU3jrAcmKFyItDMicXDT+LJyFITDiL+d/36noG 23ahyrWnbV/SryALUdcpxjGzwQb1xd2jx/TVlzJAjhH6KJdK6q+jb+Df9Uc0sg== 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=1694442378; 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=asUscgyPOBN4rx7yyZ3sNNPDlHXHnVca5Pb2Hjos3h8=; b=afEyE8DPZTj0nb+tCkcVH7vwfpdYyiw5dHNf28DSa9o/eWJhstxkcaE+vYnG26OEwAvZtG +cGz7eTwfvw/7vFDMR62/HZsDimWu7zm1WCjAD0cv/Zk7RiW2IXUUfb4/MXfA0iSK3dkpn hVUYIPNzSEBxw+vsfgaQfk2v6Bsb9Nalifis0ODO3YUpcMMauhKf/gbc3kR4yBdRpjOPXX icJnH4xNmOr7AQh6EWHK8mH7XxDyYYBlINydOCDMZMy4xDjD7K6f+wHByWNJOaS2x8Snvh BKwwmTIG0Z5rfRhpvS1AlnSpWuqN5mwbY1gD5enaWORvshaBIiCNh8Rh04ckwg== 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 4RkptK5gNwzsHY for ; Mon, 11 Sep 2023 14:26:17 +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 38BEQHj5054393 for ; Mon, 11 Sep 2023 14:26:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38BEQHtu054392 for bugs@FreeBSD.org; Mon, 11 Sep 2023 14:26:17 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 273720] tcsh doesn't expand "~" in $PATH upon login under X Date: Mon, 11 Sep 2023 14:26:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vsasjason@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D273720 Bug ID: 273720 Summary: tcsh doesn't expand "~" in $PATH upon login under X Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: vsasjason@gmail.com Noticed subj when tried to run something in my ~/bin (I'm running XFCE star= ted by lightdm). Path is defined in login.conf only (no "set path" in .cshrc): jason@jnb: [?:0] ~ $ sed -nr '/^\t:path/p' /etc/login.conf :path=3D/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bi= n:\ :path=3D/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin:\ That's what I can see after starting xfce4-terminal: jason@jnb: [?:0] ~ $ echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin jason@jnb: [?:0] ~ $ set | egrep '^path' path (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin) Setting $PATH env var manually doesn't expand ~: jason@jnb: [?:0] ~ $ setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin jason@jnb: [?:0] ~ $ echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin Setting "path" tcsh var manually expands it: jason@jnb: [?:0] ~ $ set path =3D (/sbin /bin /usr/sbin /usr/bin /usr/local= /sbin /usr/local/bin ~/bin) jason@jnb: [?:0] ~ $ set | egrep '^path' path (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /home/jason/bin) jason@jnb: [?:0] ~ $ echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/jason/bin jason@jnb: [?:0] ~ $ If I log in through console, path is expanded correctly right away. Probably adding "set path ..." to every user's .cshrc will do the trick, bu= t I still don't understand why it doesn't work under X and would prefer to avoid duplicating same variable definition (I mean, login.conf should be enough, isn't it?) --=20 You are receiving this mail because: You are the assignee for the bug.=