From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Rousseau Subject: Re: Babel shell script issue Date: Mon, 25 Apr 2016 10:20:34 +0200 Message-ID: References: <87inz63yhi.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141e52ccb8c2005314ad915 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aubl0-0001Ez-6B for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:20:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aubky-0007Iv-I4 for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:20:37 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:35977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aubkx-0007Io-Oq for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:20:36 -0400 Received: by mail-wm0-x234.google.com with SMTP id v188so88055840wme.1 for ; Mon, 25 Apr 2016 01:20:35 -0700 (PDT) In-Reply-To: <87inz63yhi.fsf@ucl.ac.uk> 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" To: Eric S Fraga , Jarmo Hurri , "emacs-orgmode@gnu.org" --001a1141e52ccb8c2005314ad915 Content-Type: text/plain; charset=UTF-8 Hi, I had the same problem. You actually need to use: #+begin_src shell :results drawer #+end_src Using sh loads an org function that comes with your emacs and is outdated... Btw could these functions be marked as deprecated but aliased to the new ones? Sylvain. 2016-04-25 10:04 GMT+02:00 Eric S Fraga : > On Monday, 25 Apr 2016 at 07:24, Jarmo Hurri wrote: > > Greetings. > > > > I have trouble running shell scripts in Babel. I can't even reproduce > > examples from worg. For example, this piece of org > > > > #+begin_src sh :results drawer > > cat < > | 1 | 2 > > |-- > > | a | b > > EOF > > #+end_src > > > > from this page > > > > http://orgmode.org/worg/org-contrib/babel/header-args.html > > > > produces the following error: > > > > org-babel-variable-assignments:sh: Symbol's function definition is > > void: org-babel-get-header > > Have you done this: > > (require 'ob-shell) > > ? > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412 > > --001a1141e52ccb8c2005314ad915 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I had the same proble= m. You actually need to use:

=C2=A0=C2=A0=C2=A0 #+begin_src shell :r= esults drawer
=C2=A0=C2=A0=C2=A0 #+end_src

Using sh loads an org function that comes with= your emacs and is outdated...

Btw c= ould these functions be marked as deprecated but aliased to the new ones?
Sylvain.

2016-04-25 10:04 GMT+02:00 = Eric S Fraga <e.fraga@ucl.ac.uk>:
On Monday, 25 Apr 2016 at 07:24, Jarmo Hurri wrote= :
> Greetings.
>
> I have trouble running shell scripts in Babel. I can't even reprod= uce
> examples from worg. For example, this piece of org
>
>=C2=A0 =C2=A0#+begin_src sh :results drawer
>=C2=A0 =C2=A0cat <<EOF
>=C2=A0 =C2=A0| 1 | 2
>=C2=A0 =C2=A0|--
>=C2=A0 =C2=A0| a | b
>=C2=A0 =C2=A0EOF
>=C2=A0 =C2=A0#+end_src
>
> from this page
>
> http://orgmode.org/worg/org-contrib/b= abel/header-args.html
>
> produces the following error:
>
> org-babel-variable-assignments:sh: Symbol's function definition is=
> void: org-babel-get-header

Have you done this:

=C2=A0 (require 'ob-shell)

?

--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412=


--001a1141e52ccb8c2005314ad915--