From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: How to let tramp be aware the virtualenv? Date: Wed, 17 Jul 2019 13:34:09 +0200 Message-ID: <87pnm8vqry.fsf@gmx.de> References: <5d2e15b2.1c69fb81.02bd.de51@mx.google.com> <87zhldur3a.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153747"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Bruno Barbier , help-gnu-emacs@gnu.org To: Zhongwei Yao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 13:34:24 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hniCW-000dqO-AG for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 13:34:24 +0200 Original-Received: from localhost ([::1]:56164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hniCU-0006y5-T5 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 07:34:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45768) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hniCR-0006vX-OY for help-gnu-emacs@gnu.org; Wed, 17 Jul 2019 07:34:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hniCQ-0000kv-PZ for help-gnu-emacs@gnu.org; Wed, 17 Jul 2019 07:34:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:47215) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hniCQ-0000jD-A2 for help-gnu-emacs@gnu.org; Wed, 17 Jul 2019 07:34:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1563363250; bh=axywIi+9OpwOZrOkmDiU8uhmwCsd2mCmzjuKSxaxcUk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=l5Q7BmxM+i6QGLAeA+MGAPc5eahJmvznyR1C2Xm5tyGw5AV0/Iesoq2NOKyxxUUvJ wx6CcgePW5ibC0vGEkWuHBN0y79wPzNtk+mmfXLJfHbG7yjp9bfZmYcIljmI6I7DZq XHrr18w0/TpGtnOaTMC5GiY0CuZw3lGDxIun6Cdg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.58.192]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M9Jss-1hb6Cq1uQA-00CkQB; Wed, 17 Jul 2019 13:34:10 +0200 In-Reply-To: (Zhongwei Yao's message of "Wed, 17 Jul 2019 18:47:05 +0800") X-Provags-ID: V03:K1:e2/MVO02o16+CsFtS0YjSdHY4Ilh4djOW2X5W4RUhkGfZdQ+916 vwKSbNcMI+YngtKE/NclKkGPnNv+K6ZRaw+bzq226OmCqfYUfoRK17cNzfG8VW8iyuNv3FX MlI+y4kxg5OWPvadN2EWFRQ1f0/UgvruWF9lvNAxXevhtCk9bIADOs/ZSUUYdyXZnmgB0zB u9U7hr9o0T/nEPigpPNIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:QpAuf86LD0E=:CHycKNPlpArQsTwtgv1JeN k4S+TC10WCE26WtAgZgY3brE+nmEZIyUBL8KQLheK3LUbaxCjsH+QRPBBmBwHoAdp5F9zFIwL Ut2hlEpWWfFwRVNsXEbi9trTUUxW0E3vEHAPIgIOFIUeXEJIWyaYGjaj35H+/uveyhQQPxi5J gHFf/r7/+XE+mk3dPiQPOcNE8uzoYLBU5IV6dXj0IPFUZrAd+OzIEXs3+nCB/S3/nrmoZ5arH Vhzcbyl+G6R2uT14Fla/AmAg7HyGYtL3R4NySu8u+kKW2kjQTHYcAhbxWZN9vmw2xoJchrkrq VPzUCLdFozS4nD1KZgMQ1MaWwqc21JP68eMBheXeYmxqANWwxPGDrpnDVYA6pRMaPSFkmKAc4 s2WRiYDM6Ji1HK/jfnNeR6IjbIx4zLD4s6klJrjQX9ZqFW8Ik9sgnJJob7/S5vnm2QOuUZQQ9 LtFJCbBFJf9kiKF1DRrPNVGjC6dWgsptgeFxYbvnwhw5O5YeVCmGNbDhNyvKkso+bB+pApAJH HxNQwVPYV3eUPqAaZFsOmXico3+jDmcINSM5nDjUIzyMYkzXZ3F7pznOx15wJT85gUekIihzV fMCGP8jD9x5IJIwdi2VXTCbyYbR42Gx2InWGY+m3JMs+VjuUQy+1AGTSvv7pbPqNUaNc6iUO5 mJmCuvKLb2z9czldoyOeNxjJgydnoclIzMfh8rCfRe91SLNGqZX+SykTLBUtve10rMEa69Vte N+O5lrSNEWhEveNyuO/9s4fQ/s01EoW9BFA+5KDH/tPRjn6Oe4iHQErGzD0ljK4PZcVu/NCQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121191 Archived-At: Zhongwei Yao writes: > Hi, Michael, Hi, > I try to set the remote-shell to /bin/bash, and from tramp log, there > is: > xx8:15.682748 tramp-get-connection-property (7) # remote-shell > /bin/bash Good. > And I notice there is log line like: > 38:15.720661 tramp-send-command (6) # cd > /home/user/projects/foo/build/ && exec <<'6xxa3a8f7393fxxx' env > PS1\=/ssh\:remote_machine\:/home/user/projects/foo/build/\ \#\$\ > TERMCAP\= COLUMNS\=134 INSIDE_EMACS\=26.1\,compile /bin/sh > ( > echo $BASH_VERSION > ) 6xxa3a8f7393fxxx > > It is still using /bin/sh. This isn't any longer Tramp. *This* hard coded /bin/sh comes from the compile command. Apparently, you're using Emacs 26. In Emacs 27, compile can be configured to use connection local variables, which would overwrite this. Do you have a chance to run the development version of Emacs? Best regards, Michael.