From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Feature freeze and Tramp? Date: Mon, 10 May 2004 21:49:23 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405110249.i4B2nND22278@raven.dms.auburn.edu> 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> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084244461 24042 80.91.224.253 (11 May 2004 03:01:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 03:01:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 11 05:00:52 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 1BNNVk-0006fy-00 for ; Tue, 11 May 2004 05:00:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNNVk-00011U-00 for ; Tue, 11 May 2004 05:00:52 +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 1BNNRo-0002bB-Pz for emacs-devel@quimby.gnus.org; Mon, 10 May 2004 22:56:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNNRQ-0002aE-3U for emacs-devel@gnu.org; Mon, 10 May 2004 22:56:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNNQt-0002UP-0b for emacs-devel@gnu.org; Mon, 10 May 2004 22:56:23 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNNKs-0001jB-9l for emacs-devel@gnu.org; Mon, 10 May 2004 22:49:38 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i4B2nMTS029370; Mon, 10 May 2004 21:49:22 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i4B2nND22278; Mon, 10 May 2004 21:49:23 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: kai@emptydomain.de In-reply-to: <87n04gzb7h.fsf@emptyhost.emptydomain.de> (message from Kai Grossjohann on Mon, 10 May 2004 15:02:58 +0200) 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:23105 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23105 Kai Grossjohann wrote: Your original message said that hundreds of lines were inserted into ~/.bash_history. Hm. Does this mean that *sh* did that, and not *bash*? I did not study the TRAMP shell script in full detail, but from the fact that exporting the variables fixes the problem, I would _guess_ that a bash subshell of the sh shell does it. Anyway, unless there is a reason _not_ to export the variables, the patch below seems to fix the problem. Well, there still are 3 lines that get inserted into the history, but that definitely is less bad than hundreds. ===File ~/tramp-diff======================================== *** tramp.el 07 May 2004 18:33:46 -0500 1.43 --- tramp.el 10 May 2004 18:12:13 -0500 *************** *** 5621,5629 **** "stty -onlcr")))) (erase-buffer) (tramp-message ! 9 "Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1'") (tramp-send-command-internal multi-method method user host ! "HISTFILE=$HOME/.tramp_history; HISTSIZE=1") (erase-buffer) (tramp-message 9 "Waiting 30s for `set +o vi +o emacs'") (tramp-send-command-internal multi-method method user host --- 5621,5629 ---- "stty -onlcr")))) (erase-buffer) (tramp-message ! 9 "Waiting 30s for `export HISTFILE=$HOME/.tramp_history HISTSIZE=1; export HISTFILE; export HISTSIZE'") (tramp-send-command-internal multi-method method user host ! "HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE") (erase-buffer) (tramp-message 9 "Waiting 30s for `set +o vi +o emacs'") (tramp-send-command-internal multi-method method user host ============================================================