From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brad Knotwell Subject: org-babel-detangle issue on 9.1.14 Date: Thu, 4 Oct 2018 07:08:35 +0000 (UTC) Message-ID: <833272723.4259898.1538636915102@mail.yahoo.com> References: <833272723.4259898.1538636915102.ref@mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4259897_2135124753.1538636915100" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7xkd-0002Pj-Lu for emacs-orgmode@gnu.org; Thu, 04 Oct 2018 03:08:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7xkY-0005dQ-N2 for emacs-orgmode@gnu.org; Thu, 04 Oct 2018 03:08:47 -0400 Received: from sonic308-8.consmr.mail.gq1.yahoo.com ([98.137.68.32]:41385) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7xkX-0005bF-QP for emacs-orgmode@gnu.org; Thu, 04 Oct 2018 03:08:42 -0400 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: emacs-orgmode@gnu.org ------=_Part_4259897_2135124753.1538636915100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Good day all-- I've been playing with org-babel-detangle and I've noticed something that's= either a bug or a limitation. =C2=A0It's confusing enough that it's worth = writing down if it's expected. =C2=A0Basically, it doesn't work if there ar= e variables defined in the begin_src header. =C2=A0I've attached an example= below. =C2=A0The first one won't detangle and the last two will. * no work#+begin_src sh sh :tangle hw.sh :var x=3D"hello world" :shebang #!= /bin/sh :comments linkecho $x#+end_src * works#+begin_src sh sh :tangle hw2.sh :comments linkecho "helloworld2"#+e= nd_src * stillworks#+begin_src sh sh :tangle hw3.sh :comments link :shebang #!/bin= /shecho "helloworld3" #+end_src I've tested with 9.1.7 and 9.1.14 so if this is supposed to be supported it= 's not something newly broken. Thx. --Brad ------=_Part_4259897_2135124753.1538636915100 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Good day all--

I've been playing with org-babel-detangle and I've noticed somethin= g that's either a bug or a limitation.  It's confusing enough that it'= s worth writing down if it's expected.  Basically, it doesn't work if = there are variables defined in the begin_src header.  I've attached an= example below.  The first one won't detangle and the last two will.

* no work
#+begin_src sh sh :t= angle hw.sh :var x=3D"hello world" :shebang #!/bin/sh :comments link
<= div>echo $x
#+end_src

* works
= #+begin_src sh sh :tangle hw2.sh :comments link
echo "helloworld2= "
#+end_src

* stillworks
#+beg= in_src sh sh :tangle hw3.sh :comments link :shebang #!/bin/sh
ech= o "helloworld3"

#= +end_src

I've tested with 9.1.7 and 9.1.14 so if t= his is supposed to be supported it's not something newly broken.
=
Thx.

--Brad
------=_Part_4259897_2135124753.1538636915100--