From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: Feature freeze and Tramp? Date: Thu, 13 May 2004 08:54:34 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87n04cvmtx.fsf@emptyhost.emptydomain.de> References: <87zn8qlleb.fsf@emptyhost.emptydomain.de> <87d65gj5j2.fsf@emptyhost.emptydomain.de> <200405080234.i482YKE24109@raven.dms.auburn.edu> <87wu3n4380.fsf@emptyhost.emptydomain.de> <200405090140.i491eTW28920@raven.dms.auburn.edu> <87n04gzb7h.fsf@emptyhost.emptydomain.de> <200405110249.i4B2nND22278@raven.dms.auburn.edu> <87sme7o2zu.fsf@emptyhost.emptydomain.de> <200405120102.i4C127e12749@raven.dms.auburn.edu> <8765b2ksm7.fsf@emptyhost.emptydomain.de> <200405121457.i4CEv8D15723@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084431738 9694 80.91.224.253 (13 May 2004 07:02:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 07:02:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 13 09:02:08 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOAEK-00066B-00 for ; Thu, 13 May 2004 09:02:08 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOAEK-0004ZZ-00 for ; Thu, 13 May 2004 09:02:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOA9V-0005PV-RW for emacs-devel@quimby.gnus.org; Thu, 13 May 2004 02:57:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOA7h-0004qm-9T for emacs-devel@gnu.org; Thu, 13 May 2004 02:55:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOA76-0004jB-H0 for emacs-devel@gnu.org; Thu, 13 May 2004 02:55:12 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOA75-0004iu-VV for emacs-devel@gnu.org; Thu, 13 May 2004 02:54:40 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BOA75-00008c-00 for ; Thu, 13 May 2004 08:54:39 +0200 Original-Received: from 213-203-244-156.kunde.vdserver.de ([213.203.244.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 May 2004 08:54:39 +0200 Original-Received: from kai by 213-203-244-156.kunde.vdserver.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 May 2004 08:54:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:VqCWFXrSCtIr9RN7RF3eCsTNqT0= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23305 Luc Teirlinck writes: > Kai Grossjohann wrote: > > * tramp.el (tramp-open-connection-setup-interactive-shell): `unset > HISTFILE' rather than `set -o history' to turn off the history. > > Is `set -o history' a typo? Perhaps it's a typo in the ChangeLog only. > `unset HISTFILE' would not work at the particular spot anyway, even if > the shell is bash, because one has to export the "history-disabledness" > and "unsettedness" of variables does not get exported. Really? Below, you say that `unset HISTFILE' works... Note that the spot we're talking about here is in the correct shell already. > * tramp.el (tramp-open-connection-setup-interactive-shell): Posix > shells don't allow you to turn off the history, so we redirect it > to an innocuous file and limits that file's size as much as > possible. > > They certainly do not allow `set +o history'. After `bash --posix', > both `unset HISTFILE' and `HISTFILE=' seem to work. But the fact that > they work in `bash --posix' is definitely no "proof". Maybe some > other shells insist on using their default history file if HISTFILE is > either unset _or_ null, so it probably is safer to keep the current > constructs. Experience tells me that /bin/sh and ksh should be tested on AIX and IRIX, at least, to make sure it's okay. Perhaps a BSD should also be tested. It is of course cleaner to have no history at all ;-) So I think I would change if it works on SunOS, Solaris, AIX, IRIX, and one of the BSDs. (sh and ksh need to be tested on those OSes.) Kai