From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: over-engineered (and under-standardized) inferior interfaces Date: Thu, 28 Aug 2014 12:02:07 -0400 Message-ID: References: <87iolld15k.fsf@igel.home> <87oavdjbes.fsf@gmx.de> <87ha13utgp.fsf@gmx.de> <87egw25siy.fsf@gmx.de> <87siki188k.fsf@gmx.de> <87mwaq14ez.fsf@gmx.de> <87egw2139g.fsf@gmx.de> <87bnr5u79x.fsf@gmx.de> <87tx4x6lut.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1409241771 25604 80.91.229.3 (28 Aug 2014 16:02:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2014 16:02:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 28 18:02:47 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XN29u-0004J3-BE for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2014 18:02:46 +0200 Original-Received: from localhost ([::1]:37846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN29t-0007I5-BJ for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2014 12:02:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN29L-0006ed-6r for emacs-devel@gnu.org; Thu, 28 Aug 2014 12:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN29J-0003hH-Lo for emacs-devel@gnu.org; Thu, 28 Aug 2014 12:02:11 -0400 Original-Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:56003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN29J-0003gw-Er for emacs-devel@gnu.org; Thu, 28 Aug 2014 12:02:09 -0400 Original-Received: by mail-la0-f54.google.com with SMTP id b17so1200131lan.13 for ; Thu, 28 Aug 2014 09:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gbmkKzrI3/2VNKSq3Tm+JNkJwkwwQTL2HYJasZrImVY=; b=kWM0lQMLtT3f4LWYO/mCn9g1iUlTY9MQ2i54E8PiI33uc7LBwsb0tkikrI1a4zPLjF wydXUQ6Q/TZXIwNcqrR80nKfr0I4HV7eWDamg8E3W+CEELUxOcCDkLB7VTdHer/r/1aE hg1T4ozz4ZFcGNcuVwpu4d9T4+cIkuXZYTbvDE+84hOdKB1urCO2+NqTUQ1YwB+2UwM6 0b3pTvijfQSviloVQS9cucmH1kZ38GNdjY54ihNG6AJCC1jiti6pWvvJgf1H4QEzyaOq n1G56zmDwJ8XQXNlwuF1p14uCj5nHoxsXpuP73ZFIUIv99pyEXsKVTLJqK/8Dzu4vPaX Rv6A== X-Received: by 10.152.23.6 with SMTP id i6mr5336532laf.39.1409241727677; Thu, 28 Aug 2014 09:02:07 -0700 (PDT) Original-Received: by 10.112.109.69 with HTTP; Thu, 28 Aug 2014 09:02:07 -0700 (PDT) In-Reply-To: <87tx4x6lut.fsf@gmx.de> X-Google-Sender-Auth: kAIUN1W2QLeRzrW6qF6HHC901b4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173869 Archived-At: On Thu, Aug 28, 2014 at 4:48 AM, Michael Albinus wrote: > Sam Steingold writes: > >>>> (setq sql-vertica-default-directory "/ssh:vertica|sudo:dbadmin@vertica:") >>>> still results in >>>> >>>> Host name must not match method "sudo" > > But Tramp isn't activated with that path. See: > >> tramp-file-name-handler(expand-file-name "/ssh:vertica|sudo:dbadmin/" nil) > > So you must debug, where the trailing "@vertica:" is replaced by "/". it turned out that the *SQL* buffer held and reused the old default-directory. Sorry. Now I am getting Tramp: Opening connection for dbadmin@vertica using sudo... Tramp: Sending command `exec ssh -o ControlPath=/var/folders/5k/3w_vc1qs6pv4k3wvnrwr_5100000gn/T/tramp.19861UFF.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none vertica' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `vertica' Tramp: Sending command `exec env SHELL=/bin/sh sudo -u dbadmin -s -H -p Password:' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `vertica' Tramp: Opening connection for dbadmin@vertica using sudo...done File error: "Searching for program", "no such file or directory", "vsql" despite vertica$ type vsql vsql is /usr/bin/vsql do you need the "debug" tramp buffer? also, when I use shell, "sudo -u dbadmin" asks me for a password. tramp does not. I wonder why. -- Sam Steingold