From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: [babel] Executing sh-code Date: Fri, 27 Nov 2009 19:00:08 +0900 Message-ID: <200911271900.08393.torsten.wagner@googlemail.com> References: <87k4xey99s.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDxc2-00022L-Ex for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 04:59:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDxbv-0001yL-Sr for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 04:59:37 -0500 Received: from [199.232.76.173] (port=59963 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDxbv-0001yG-Pa for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 04:59:31 -0500 Received: from mail-pz0-f181.google.com ([209.85.222.181]:41904) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDxbv-00008J-67 for emacs-orgmode@gnu.org; Fri, 27 Nov 2009 04:59:31 -0500 Received: by pzk11 with SMTP id 11so910743pzk.14 for ; Fri, 27 Nov 2009 01:59:29 -0800 (PST) In-Reply-To: <87k4xey99s.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi S=E9bastien, I just tried quickly. I use org-babel with python, up to now never with she= ll=20 scripting. >=20 > --8<---------------cut here---------------start------------->8--- > * Prerequisites >=20 > #+begin_src sh :session ecm > cd ~/Personal > #+end_src > --8<---------------cut here---------------end--------------->8--- This works for me (I changed the folder name). There is a error line in my= =20 message buffer =2D-8<---------------cut here---------------start------------->8--- executing Shell source code block ~/babel=20 save-current-buffer: Wrong type argument: char-or-string-p, nil =2D-8<---------------cut here---------------end------------->8--- but the relevent part runs ok. My shell buffer depict to the new folder aft= er=20 execution. =2D-8<---------------cut here---------------start------------->8--- torsten@gaijin ~ %=20 cd ~/babel echo 'org_babel_sh_eoe' torsten@gaijin ~ % cd ~/babel torsten@gaijin ~/babel (git)-[master] % =2D-8<---------------cut here---------------end------------->8--- I used the same init like you > What am I doing wrong? Or have I set something wrong (or missing) in my > .emacs file? >=20 > --8<---------------cut here---------------start------------->8--- > (require 'org-babel-init) >=20 > ;; activate a subset of languages > (require 'org-babel-R) > (require 'org-babel-sh) >=20 > ;; make pre-built helper functions available > (org-babel-load-library-of-babel) > --8<---------------cut here---------------end--------------->8--- However I didn't use the (org-babel-load-library-of-babel) function. Which version of org-mode di you use ? org-babel is young and change still= =20 heavily. I guess you have to use the latest git-version of org-mode. =46urthermore, does the shell iteself (M-x shell) work in emacs as desired ? Sorry not a big help at least a pointer that it should work... Bye Torsten