Date: Sun, 9 Jul 2017 03:48:54 -0300 From: Le Baron d'Merde <lebarondemerde@gmx.com> To: freebsd-bugs@freebsd.org Subject: login.conf does not work if tcsh but works if csh. Message-ID: <20170709064853.GA28052@gmx.com>
next in thread | raw e-mail | index | archive | help
Hello! 11.0-RELEASE-p1 I am experiencing a weird behavior with tcsh (and csh). I had to set up my LOCALE in the .tcshrc when I installed the system, because it didn't work in /etc/login.conf neither in ~/login_conf, normal user and root. These days I come back to investigate why it was not working and after several changes I found out it works if the login shell is /bin/sh. Then, I also tried /usr/local/bin/bash and worked, and then worked with /bin/csh. :confused: During that process I noticed different colors when editing the ~/login_conf file while the login shell was tcsh. http://www.mediafire.com/view/rygm5qa5a1b0ty8/tcsh.png For some reason, when the login shell is tcsh the settings in login.conf and ~/login_conf with different color are ignored. I changed the order of the settings to confirm that. So, I changed the login shell to csh but kept the .tcshrc file(s) intact, for normal user and root, what worked normally. Later I renamed the files to .cshrc, and did a "fix" in the keybinds parameters: //////// if ( $?tcsh ) then bindkey "^[Od" backward-word # rxvt bindkey "^[Oc" forward-word # rxvt bindkey "\e[2~" overwrite-mode bindkey "\e[3~" delete-char bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word bindkey "\e[5~" history-search-backward bindkey "\e[6~" history-search-forward bindkey "^W" backward-delete-word endif /////// Changing "if ( $?tcsh ) then" to "if ( $?csh ) then". And so, forward-word and backward-word stopped working. I use x11/rxvt-unicode. I do not have idea why, neither if it should be expected. Any idea of what is going on, or if it should be reported as a bug or something? Thank you. -- Best Regards. LBdM.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170709064853.GA28052>