HOME as ~ in default PATH inherited from /etc/login.conf doesn't work for tcsh
Date: Mon, 16 Oct 2023 13:55:46 UTC
Hi folk. I installed FreeBSD RELEASE 13.2 and upgraded to patch level 4 as soon as it was up and ready. I am spoiled by some candy stuff so I went ahead setting /bin/tcsh as my default shell. I was using a rather simple ~/.cshrc file to get started ( get a prompt in color, useful alias ). Nothing about PATH did I change anywhere IIRC. 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 checked and it seemed that I got this setting from /etc/login.conf (part shown here): default:\ :passwd_format=sha512:\ :copyright=/etc/COPYRIGHT:\ :welcome=/var/run/motd:\ :setenv=BLOCKSIZE=K:\ :mail=/var/mail/$:\ :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\ I went through the comments in the file and manual pages about the file, nothing mentioned about ~ not interpreted as $HOME. Am I missing something or is it worth a bug report? Thanks!