From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: [BUG] shell not working as sh? Date: Mon, 23 Feb 2015 14:05:53 +0100 Message-ID: <86d250srpq.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPsi3-0000GJ-QZ for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 08:06:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPshy-0002Cf-OA for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 08:06:03 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:35365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPshy-0002CX-HU for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 08:05:58 -0500 Received: from mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.140]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 5B87841C091 for ; Mon, 23 Feb 2015 14:05:57 +0100 (CET) Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter2-d.gandi.net (mfilter2-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id vi+82uB6MeC1 for ; Mon, 23 Feb 2015 14:05:55 +0100 (CET) Received: from localhost.invalid (unknown [193.206.22.97]) (Authenticated sender: me@toel.it) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id D422C41C07B for ; Mon, 23 Feb 2015 14:05:53 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I remember that sh was renamed to shell some time ago. But shell sometimes does not work, while sh does. Is there a difference between the two (and when i should use one over another?) or is it a bug? The minimal example follows: #+PROPERTY: header-args:shell :dir /vagrant@127.0.0.1:/vagrant #+PROPERTY: header-args:shell+ :exports both :results output verbatim replace #+PROPERTY: header-args:sh :dir /vagrant@127.0.0.1:/vagrant #+PROPERTY: header-args:sh+ :exports both :results output verbatim replace * setup #+BEGIN_SRC sh cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys # TODO accept the host key automatically or use StrictHostKeyChecking no # not sure if tramp is smart enough to handle this by default #+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 #+RESULTS: #+RESULTS: * sh works #+BEGIN_SRC sh ls | wc -l #+END_SRC #+RESULTS: : 5 * shell does not work #+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