tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: tramp shell command doesn't read stdin


From: Sylvain Chouleur
Subject: Bug: tramp shell command doesn't read stdin
Date: Sat, 25 Jan 2014 20:25:31 +0100

Hi,

there is a regression introduced by this commit:

5340e5f5ff93a89fe18c342e68ebfa45b840eb64
Author: Michael Albinus <address@hidden>
Date:   Fri Dec 6 16:21:06 2013 +0100

    * tramp-sh.el (tramp-sh-handle-start-file-process): Handle long
    command lines, lasting from "sh -c ...".  (Bug#16045)

The syntax exec <<EOF /bin/bash
commands
EOF

prevents users to send inputs to bash using stdin.
For example, the following does not works anymore:

exec <<EOF /bin/bash
read line;
echo $line;
EOF

I don't understand what was this problem of long command lines: I've tried to execute shell comands with huge command lines and all were successfull.
To keep the approach of splitting the lines, I would suggest something like that:
exec /bin/bash -c "
commands
on
multiple lines
"

But this needs to backslash all shell specific characters

What do you think?

-- 
Sylvain

reply via email to

[Prev in Thread] Current Thread [Next in Thread]