unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: zijianyue@163.com, 16045@debbugs.gnu.org
Subject: bug#16045: 24.3.50; rgrep can't work
Date: Thu, 05 Dec 2013 20:58:58 +0100	[thread overview]
Message-ID: <87y53z2hod.fsf@gmx.de> (raw)
In-Reply-To: <83fvq72ndc.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Dec 2013 19:55:59 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Michael Albinus <michael.albinus@gmx.de>
>> Cc: Eli Zaretskii <eliz@gnu.org>, zijianyue <zijianyue@163.com>,
>> 16045@debbugs.gnu.org
>> Date: Thu, 05 Dec 2013 16:10:26 +0100
>> 
>> Hard for Tramp. It gets a long string as argument of
>> `start-file-process-shell-command', which looks like the example in
>> <http://thread.gmane.org/gmane.emacs.tramp/8233/focus=8244>. How shall
>> Tramp parse it?
>
> Why should it parse it?  Isn't \n\ removed on the remote end before
> the shell there interprets it?

I'm not sure, whether it works under any circumstance. For example:

$ cat <<EO\
> F
> xxx\
> yyy
> EO\
> F
> EOF
xxxyyy
EOF
$ 

The heredoc does not understand the first EOF, when written as

EO\
F

Granted, that is malicious example. But it shows we need some knowledge
about the string, and where to add \\n.

>> Where does it know from, how long a command line in the remote shell
>> could be?
>
> How do you know that in grep.el?

grep.el doesn't know it either. But it knows more about the arguments,
and where to add that line break.

Best regards, Michael.





  reply	other threads:[~2013-12-05 19:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04  5:57 bug#16045: 24.3.50; rgrep can't work zijianyue
2013-12-04 17:24 ` Eli Zaretskii
2013-12-04 19:10   ` Stefan Monnier
2013-12-04 19:36     ` Eli Zaretskii
2013-12-04 20:52       ` Stefan Monnier
2013-12-05 15:10     ` Michael Albinus
2013-12-05 17:55       ` Eli Zaretskii
2013-12-05 19:58         ` Michael Albinus [this message]
2013-12-05 20:23           ` Eli Zaretskii
2013-12-05 20:50             ` Michael Albinus
2013-12-05 21:09           ` Stefan Monnier
2013-12-06 15:39             ` Michael Albinus
2013-12-06 15:58               ` Eli Zaretskii
2013-12-06 16:15                 ` Michael Albinus
2013-12-09  5:23                   ` bug#16045: 回复: " zijianyue
2013-12-09  7:20                     ` Michael Albinus
2013-12-06  9:12         ` Andreas Schwab
2013-12-06  9:16           ` Andreas Schwab
2013-12-05 15:14   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y53z2hod.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=16045@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=zijianyue@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).