[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forget about "bash -c bash file.sh" (Re: bash source code block: pro
From: |
Bruno Barbier |
Subject: |
Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands) |
Date: |
Sat, 18 Nov 2023 10:11:20 +0100 |
Matt <matt@excalamus.com> writes:
> ---- On Sat, 18 Nov 2023 09:54:46 +0100 Bruno Barbier
>
> It's still not clear to me if this is "what Emacs does". However, that's the
> best I could come up with.
>
> Evaluating the following
>
> #+name: /tmp/test.sh
> #+begin_src bash :results output
> ssh localhost "echo foo>foo_file"
> echo "bar" | tee /tmp/bar.txt
> #+end_src
>
> does exactly what
>
> cat /tmp/test.sh | bash -c bash
>
> does. Both create a file "foo_file" containing "foo" on the remote machine
> and neither execute the second line.
>
> So, I would say that what happens in Org is the "expected" behavior.
Agreed.
- Re: bash source code block: problem after ssh commands, (continued)
- Re: bash source code block: problem after ssh commands, Matt, 2023/11/17
- Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Max Nikulin, 2023/11/17
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Matt, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Bruno Barbier, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Matt, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Bruno Barbier, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Matt, 2023/11/18
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands),
Bruno Barbier <=
- Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands), Ihor Radchenko, 2023/11/18
- Re: bash source code block: problem after ssh commands, Bruno Barbier, 2023/11/18
- Re: bash source code block: problem after ssh commands, Matt, 2023/11/18
- Re: bash source code block: problem after ssh commands, Matt, 2023/11/18
Re: bash source code block: problem after ssh commands, Matt, 2023/11/06
Re: bash source code block: problem after ssh commands, Max Nikulin, 2023/11/18