emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: ob-shell, output and continuation prompts
Date: Tue, 28 Nov 2017 14:19:05 +0100	[thread overview]
Message-ID: <87k1ya7d86.fsf@luisa.c0t0d0s0.de> (raw)
In-Reply-To: <87mv368sdw.fsf@luisa.c0t0d0s0.de> (Michael Welle's message of "Tue, 28 Nov 2017 14:06:19 +0100")

Hello,

Michael Welle <mwe012008@gmx.net> writes:

> Hello Eric,
>
> Eric S Fraga <esflists@gmail.com> writes:
>
>> On Tuesday, 28 Nov 2017 at 13:23, Michael Welle wrote:
>>> I think that last one is what one would expect ;). Anyways, using sessions,
>>> is there a way to get rid off of the shell's continuation prompts?
>>
>> PS2=""
>>
>> in the shell script?
> does that work for you? I had to evaluate
> (add-to-list 'tramp-remote-process-environment "PS2=> "). Otherwise
> tramp/emacs would wait forever after sending the first line of the for
> loop. 

oh, I should add that. Albeit the example I posted earlier runs locally,
my goal is to execute the shell code on a remote machine. But the
result is the same with both scenarios.

#+BEGIN_SRC shell :session n42 :dir /localhost: :shebang "#!/bin/bash"
for i in "aa" "bb" "cc" ; do
echo "u: $i"
done
#+end_src

Regards
hmw

  reply	other threads:[~2017-11-28 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28 12:23 ob-shell, output and continuation prompts Michael Welle
2017-11-28 13:00 ` Eric S Fraga
2017-11-28 13:06   ` Michael Welle
2017-11-28 13:19     ` Michael Welle [this message]
2018-02-04 19:32 ` Shintaro Katayama

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87k1ya7d86.fsf@luisa.c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /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/org-mode.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).