From owner-freebsd-bugs@freebsd.org Sun Jul 9 06:45:41 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53FB9DAC365 for ; Sun, 9 Jul 2017 06:45:41 +0000 (UTC) (envelope-from lebarondemerde@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9919579F3F for ; Sun, 9 Jul 2017 06:45:40 +0000 (UTC) (envelope-from lebarondemerde@gmx.com) Received: from gmx.com ([177.192.249.88]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MarAM-1dFBkp0pUw-00KQoJ for ; Sun, 09 Jul 2017 08:45:37 +0200 Date: Sun, 9 Jul 2017 03:48:54 -0300 From: Le Baron d'Merde To: freebsd-bugs@freebsd.org Subject: login.conf does not work if tcsh but works if csh. Message-ID: <20170709064853.GA28052@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-Provags-ID: V03:K0:HVWnPAJF8Na59xUlOitzQMMPRpIj+7jCU48XvlNvFawo+Xk7Obt MFMGjhiOUkqwb+DYhXJlfMt5/ybknf+PwtSkd/4Hc2B10/569Ep4mABHCbDNI29pM828owk fqRI7wyc1dLWq65qMcmtXCQyZflCEH/j1pXbRgFVEtlInedTK5mtUeNlTPeCu5HMDSjrFqY B7Z8zvrvEHjFOswfcJd/A== X-UI-Out-Filterresults: notjunk:1;V01:K0:STWk7NcTzKU=:W/E+QBR4Q9n/053bRTwI4S zlvURlCy7qK/TOKgv56OuYf5AZZBCE8zPrCn6Go2Rw6tHjAbNmgQTjvYpcFVC7WP9dPiM6CqE JSUYxpws4qqjle1boK3BgLUNFdFnisxNGYQodWxGfi7wxr5RcdKrWOOpm6srMVRBnDk1ADGOa dGQ3qfTiBejv7qZkr6FsHahkTJI5XRlWsB10E+LK2A/XF69tc7qyEj8ajDz70qSNMMV8qThxO 2Z/Ht163vo0/3L7yiie4LWccyTqwAdhIf2uR9T4r9kAhXe8bSrfJbWIa2h66wAQfWt1zsOD1x aKfM4p95sox95ohu4ekNJ1SS6qIrIsIJjOFcDeTuY109sU7VOhVit78fvZ9GM8kXnwKVD0uAP FFTggU48QOHyNEFr1El6Ghq6trERsKY55yYiQlhwlzbB3GNFx0c33osH+uXjK8vddiZXg3H19 cq1pDntYj/NGU9V5zyDW1CCtfpmFVfppdlDuqb52wCvCQ5tgNUCw+WHA/qpHRryElCd8afGt8 UcFJW8KFbOI/b16LL6FfHEM0mLRUXmmQQHgyYq3PTPM9VMEWfBXUPAPzstjFQ1cpfWKSxcaVs EkDhzKnfyHQkzteufNstOMnh4Gm6X5i14/3pIx6atZXtOKxeRtSzNCvHYepriw/CSclkE8H/+ 49hpI4vFNjSEQG1XguaG09fYLjTbIvMiYyfK9cEFTnEqWaVXXaC4tiX22+2IvfFlXhhgZWdT9 BsPhp/bXtnZQiT1sveMeLWBhmm926yCcsxiGoHXWC+YrO47FP2glEh5/4pA= X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jul 2017 06:45:41 -0000 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.