From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.bugs Subject: bug#12203: 24.1.50; *grep* buffer for grep over TRAMP contains shell prompt Date: Tue, 14 Aug 2012 13:35:06 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1344965737 11618 80.91.229.3 (14 Aug 2012 17:35:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2012 17:35:37 +0000 (UTC) To: 12203@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 19:35:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1T1L1g-0000Ve-Kl for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 19:35:32 +0200 Original-Received: from localhost ([::1]:45987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1f-0006xn-Ls for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 13:35:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1a-0006wV-8n for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1L1X-0000Ew-F5 for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1X-0000Eo-Au for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1L9u-0005zz-0a for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt McClure Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Aug 2012 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134496623823041 (code B ref -1); Tue, 14 Aug 2012 17:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2012 17:43:58 +0000 Original-Received: from localhost ([127.0.0.1]:56732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1L9p-0005zZ-Dg for submit@debbugs.gnu.org; Tue, 14 Aug 2012 13:43:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46157) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1L9n-0005zS-JP for submit@debbugs.gnu.org; Tue, 14 Aug 2012 13:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1L1N-0000D6-JS for submit@debbugs.gnu.org; Tue, 14 Aug 2012 13:35:16 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1N-0000D1-Er for submit@debbugs.gnu.org; Tue, 14 Aug 2012 13:35:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1K-0006sw-DB for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1L1I-0000Bx-Ce for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:10 -0400 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:40485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1L1I-0000BY-7n for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 13:35:08 -0400 Original-Received: by qady1 with SMTP id y1so667396qad.0 for ; Tue, 14 Aug 2012 10:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=c0uvnvtEAysZ5A87WrxIiZsjvxJVwOzQ8OWw1efLrqI=; b=T7yshWuoOOiujWTyidNRa6w+w7SzOJAUDF1ro3e9ZvjObvGAdyCCeIQkCYu4/B0f8F fftH3u1NH4xePMOXodqVSUNKcbSqmxz47LVrNQewbAYS66cf893FR3nU/04ak3kkPomX ZJWU+Gxos/0s7mYo9NiVX6MODfIdP+vTNI1hDwBBKH4CzjTA3inAs9aVB5u7Qjds2ka+ nyUg3PRFJqSIger35ZODjcxtsNahfe/Gskb/VeQP4YhPY0e57iNllTTvU2eO+d1FE0hB Mt/0nYbFwKkIvB+TnbOtwAPbKsKJ3UGbf0BCGGMJ6I3m/UErhFJDnB3qK08Xc8IKhocb IEkg== Original-Received: by 10.50.156.133 with SMTP id we5mr12829135igb.62.1344965707022; Tue, 14 Aug 2012 10:35:07 -0700 (PDT) Original-Received: by 10.50.154.225 with HTTP; Tue, 14 Aug 2012 10:35:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63168 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': *** When I use `M-x grep` in a TRAMP directory, the output in the `*grep*` buffer contains the remote shell prompt. For example, on my Mac, I can reproduce with: open -n -a Emacs --args -Q --no-site-file --eval '(progn (find-file "/vagrant@192.168.33.3:/") (grep "grep -n -e vagrant /etc/passwd"))' Then the `*grep*` contains: -*- mode: grep; default-directory: "/scpc:vagrant@192.168.33.3:/" -*- Grep started at Tue Aug 14 13:29:06 grep -n -e vagrant /etc/passwd /dev/null [vagrant@vagrant-centos-5-8 ~]$ /etc/passwd:21:vagrant:x:500:500:Vagrant User:/home/vagrant:/bin/bash Grep finished (matches found) at Tue Aug 14 13:29:10 I'd like to visit the buffer corresponding to the first match, but RET on that line prompts me for a file to look, presumably because of the prompt polluting the beginning of the line. *** If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.1.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-07-14 on bob.porkrind.org Bzr revision: 109087 cyd@gnu.org-20120714053223-jxkxt958pqg8tisb Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x r e p o r t Recent messages: Tramp: Opening connection for vagrant@192.168.33.3 using scpc...done ls does not support --dired; see `dired-use-ls-dired' for more details. Tramp: Opening connection for vagrant@192.168.33.3 using scpc... Tramp: Sending command `exec ssh -q -l vagrant -o ControlPath=/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/tramp.39462dfg.%r@%h:%p -o ControlMaster=yes -e none 192.168.33.3' Tramp: Waiting for prompts from remote shell Tramp: Sending command `exec ssh -q -l vagrant -o ControlPath=/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/tramp.39462dfg.%r@%h:%p -o ControlMaster=yes -e none 192.168.33.3' Tramp: Found remote shell prompt on `192.168.33.3' Tramp: Opening connection for vagrant@192.168.33.3 using scpc...done Grep finished (matches found) Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils grep compile dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure