From nobody Tue Oct 17 04:18:25 2023 X-Original-To: questions@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 4S8ghV73k7z4x1N0 for ; Tue, 17 Oct 2023 04:18:34 +0000 (UTC) (envelope-from vogelke@pobox.com) Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S8ghV0YJPz3dk0 for ; Tue, 17 Oct 2023 04:18:34 +0000 (UTC) (envelope-from vogelke@pobox.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pobox.com header.s=sasl header.b=gObAVJ4y; spf=pass (mx1.freebsd.org: domain of vogelke@pobox.com designates 64.147.108.71 as permitted sender) smtp.mailfrom=vogelke@pobox.com; dmarc=pass (policy=none) header.from=pobox.com Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 155E31C7B75; Tue, 17 Oct 2023 00:18:27 -0400 (EDT) (envelope-from vogelke@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=sasl; bh=VZm+/ch9Td+n/9iHrXeSwwZC4V HXRzpTO8fl/P9AYBg=; b=gObAVJ4yhVZgi99XVpf5tmlBvrbE4D0O5lS++PDKhu PW09eiTHrkP2y495u1YCdZSyT6xtjQCRzsJd+kdjQeF7uYxJk84zXrEQJlx9hPwA YhcRb4eK6nw744rvcXDDdNJQ5Y9WR4oWzrCfMUXfFMPgUTz/eQQnB7/x4b6ZoQPO A= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id F24AC1C7B74; Tue, 17 Oct 2023 00:18:26 -0400 (EDT) (envelope-from vogelke@pobox.com) Received: from localhost (unknown [98.29.137.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 37C091C7B73; Tue, 17 Oct 2023 00:18:26 -0400 (EDT) (envelope-from vogelke@pobox.com) Date: Tue, 17 Oct 2023 00:18:25 -0400 From: Karl Vogel To: questions@freebsd.org Subject: Re: HOME as ~ in default PATH inherited from /etc/login.conf doesn't work for tcsh Message-ID: Reply-To: vogelke@pobox.com References: <1244605602.16156449.1697464546558.ref@mail.yahoo.com> <1244605602.16156449.1697464546558@mail.yahoo.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1244605602.16156449.1697464546558@mail.yahoo.com> X-PGP-Fingerprint: B9B0 D8CF 0413 515D BED4 B507 C123 B01E C8AE 08E9 X-PGP-URL: X-Pobox-Relay-ID: 37D88C1C-6CA4-11EE-B043-25B3960A682E-01134313!pb-smtp2.pobox.com X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.60 / 15.00]; DWL_DNSWL_LOW(-1.00)[pobox.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[pobox.com,none]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[pobox.com:s=sasl]; R_SPF_ALLOW(-0.20)[+ip4:64.147.108.0/24]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.108.71:from]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:64.147.108.0/24, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[pobox.com:+]; RCPT_COUNT_ONE(0.00)[1]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_REPLYTO(0.00)[vogelke@pobox.com] X-Rspamd-Queue-Id: 4S8ghV0YJPz3dk0 On Mon, Oct 16, 2023 at 09:56:08AM -0400, Jackie J wrote: > When I checked $PATH in terminal I was happy to see that ~/bin > was included and so I intended to put some scripts as shortcuts > to long commands and simple tasks there. However, I found that > ~/bin in my PATH won't work in tcsh as it got "command not found" > error, I have to use something like $HOME/bin or hard-code like > /home/myusername/bin. Apparently ~ was not interpreted. I've never been able to get "~" interpreted as $HOME in my TCSH startup files, so I resort to this in my .tcshrc: # If running with an empty environment, set some basic stuff. if (! $?HOME) then setenv PATH /usr/local/bin:/bin:/usr/bin setenv HOME `getent passwd "${LOGNAME}" | cut -f6 -d:` endif # Remaining aliases, prompt, etc. if ( -e $HOME/.cshrc ) then source $HOME/.cshrc endif if ( -e $HOME/.aliases ) then source $HOME/.aliases endif if ( -e $HOME/.envrc.csh ) then source $HOME/.envrc.csh endif # ... -- Karl Vogel I don't speak for anyone but myself Save the trees, wipe your butt with an owl. --bumper sticker