From owner-freebsd-questions@freebsd.org Tue Dec 15 22:48:22 2015 Return-Path: Delivered-To: freebsd-questions@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 044A0A48291 for ; Tue, 15 Dec 2015 22:48:22 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5AAE31E58 for ; Tue, 15 Dec 2015 22:48:20 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.12.175]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MhDBR-1ZnInr3HPN-00MNGO for ; Tue, 15 Dec 2015 23:48:18 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1a8yOH-000Bso-RM for freebsd-questions@freebsd.org; Tue, 15 Dec 2015 23:48:17 +0100 Date: Tue, 15 Dec 2015 23:48:17 +0100 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: freebsd-update editor choice Message-ID: <20151215224817.GB31657@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <20151213182848.M69104@brightstar.bomgardner.net> <20151215124601.GA4020@becker.bs.l> <20151215204601.bd653269.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20151215204601.bd653269.freebsd@edvax.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:JqV0021am/an5DnXN11WP2/qp+AI6CtJsk5QNTg864+pC0OMZdq jIdPUBO4wyuTHBYKgm1pNlUF+3OZAwH+lcIIVjQwryIDpfurye0/VlmjjvNFspZDisF/RPD ZyolLZROea31K2N5VgYL5fgiijgPQiCxr+SBhs0x7wl8EoIq3XOwegTi5fWMJHLIHA6WZ1+ 2RTvowXcFvsRFufLjqrZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:qqYrG+w/6wk=:tu0KkSB4rYasnYocak6Nqu 9qrnm0AOr1mP1kb30JqroJM0LNnZ8Hvtelz/XmB4s1VnJP32JYB0H8EV4p6BEet+cAzN8s8De LXz0fAtDOcIc0RvbOtCEv/1oXZbPEnBO2y0/vAqX+y6qhq041lB1IDhZEwLOPRxaqTkGtVcBh O+udBS1Io60j/1PLEYVQYJUQJ3622Fn9aL1C6OpAditE+J5GFss5eIXp1qA/iUuPmt73Xvg/h bN8RsVKoL6JRMb70bKFMAqadl/q8ws4FUW4swJrG2x1fqz3nD4Ao/JcRrorJn51FClG9M6rNG ckZWMLKGEu3+K8GDJrXwgQH2XnPphsvbNcRo/uY6cqFZnIVFAUb5WMeekvcmMcbfzqQF24BiW Hl5ka3vvjZUEvB/5SYOYYwuT9NUXMLPlHE3HCYMpLpeIpqFRsLSY7wYbO/Xm0yN9Zx8uNBpb7 f4lV488xi6Df4NI2IssSmUueRWbmYalk6FdleUWNObr9QpRQ0ljXzox4EIrA5uw5QiejpHEy1 Pg9ViLqB1oiI6nDcaGA7JqtWnnfO2ItbFbhmxGix6RZyIEbnBGTUnbO/tYhGayoFV6KquVS14 qv8/nwEQoyewXFsu3NZtRAzIZGcIMCnFkGZvxaCbIGqmqA35aLKqi9KOQF4gcaVajsawkGSV8 QReUPsEVetaHyY3CX7Mufy3rQqmZl3akg2lq2DHDRw4VjNXnTS20xvsZB8VZnY0KWrRU= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 22:48:22 -0000 Hi, On Tuesday, 15. Dec 2015, 20:46:01 +0100, Polytropon wrote: > On Tue, 15 Dec 2015 13:46:01 +0100, Bertram Scharpf wrote: > > On Sunday, 13. Dec 2015, 12:31:22 -0600, Gene wrote: > > The problem I fussed about many times and long times without > > any understanding up to this day is not how but _where_ to > > set the EDITOR environment variable. There is > > > > - /etc/login.conf > > This will set environment variables globally for all users > who login, not depending on the shell. > > Some programs change their behaviour in dependence of the > > EDITOR variable. For example if you log into a host with the > > command > > > > $ ssh otherhost -t tmux > > > > most of the above files are left unregarded and the TMux > > option 'status-keys' may be set to an undesired value. > > This depends on how login shells and interactive shells are > being configured and how they inherit environmental variables. I tested it yet another time. When I give this command: $ ssh otherhost -t tmux new-session irb and the variable EDITOR is not mentioned in "login.conf", it will be empty. Ruby's ENV[ "EDITOR"] will be nil and TMux's option "status-keys" will be "emacs". Setting "EDITOR=vi" in login.conf/default/setenv solves the problem. But nowhere else. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de