From owner-freebsd-current Sun Apr 9 00:25:05 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id AAA08510 for current-outgoing; Sun, 9 Apr 1995 00:25:05 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id AAA08464 for ; Sun, 9 Apr 1995 00:23:52 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA27246; Sun, 9 Apr 1995 09:23:26 +0200 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id JAA26730 for freebsd-current@FreeBSD.org; Sun, 9 Apr 1995 09:23:25 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id JAA05076 for freebsd-current@FreeBSD.org; Sun, 9 Apr 1995 09:19:32 +0200 From: J Wunsch Message-Id: <199504090719.JAA05076@uriah.heep.sax.de> Subject: Re: should su retain ${DISPLAY} To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Sun, 9 Apr 1995 09:19:32 +0200 (MET DST) In-Reply-To: <1112.797400000@freefall.cdrom.com> from "Jordan K. Hubbard" at Apr 8, 95 09:00:00 pm Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 726 Sender: current-owner@FreeBSD.org Precedence: bulk As Jordan K. Hubbard wrote: > > It executes the dotfiles for whichever user you're su'ing to. I think > of `su -' as "su, but flush my current environment totally and adopt > that of the user I'm su'ing to." The su source speaks about ``asthem'' for this case... > It is therefore arguable that not preserving DISPLAY in these cases > is, in fact, the right thing to do. Yes and no. (That's why i've been asking it to -hackers.) It does already preserve TERM. So it's also arguable that DISPLAY is in the same boat as TERM in a windowing environment and should be retained. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)