* [BUG] Shebang will cause shell and sh to fail over tramp
@ 2015-02-23 17:30 Daniele Pizzolli
0 siblings, 0 replies; only message in thread
From: Daniele Pizzolli @ 2015-02-23 17:30 UTC (permalink / raw)
To: emacs-orgmode
Hello,
See the minimal example, the offending part is ":shebang "#!/bin/sh".
#+PROPERTY: header-args:shell :dir /vagrant@127.0.0.1:/vagrant
#+PROPERTY: header-args:shell+ :exports both :results output verbatim replace
#+PROPERTY: header-args:shell+ :shebang "#!/bin/sh"
#+PROPERTY: header-args:sh :dir /vagrant@127.0.0.1:/vagrant
#+PROPERTY: header-args:sh+ :exports both :results output verbatim replace
#+PROPERTY: header-args:sh+ :shebang "#!/bin/sh"
* setup
#+BEGIN_SRC sh
cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
# TODO accept the key automatically or use StrictHostKeyChecking no
#+END_SRC
#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(python . t)
(shell . t)
(sh . t)))
#+END_SRC
* sh will fail
#+BEGIN_SRC sh
ls | wc -l
#+END_SRC
#+RESULTS:
Will show in *Org-Babel Error Output*:
/bin/bash: /scp:vagrant@127.0.0.1:/tmp/sh-script-1631VYi: No such file or directory
#+RESULTS:
* shell will fail
#+BEGIN_SRC shell
ls | wc -l
#+END_SRC
Will show in *Messages*
org-babel-execute:shell: Wrong number of arguments: #[(session body &optional params stdin) [... binary code cut ...]
* org version
#+BEGIN_SRC emacs-lisp
(org-version nil t)
#+END_SRC
#+RESULTS:
: Org-mode version 8.3beta (release_8.3beta-860-ge4da74 @ /home/vagrant/.emacs.d/el-get/org-mode/lisp/)
Best,
Daniele
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-23 17:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-23 17:30 [BUG] Shebang will cause shell and sh to fail over tramp Daniele Pizzolli
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).