From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: [babel] Problem with tangling and newlines Date: Thu, 14 Jul 2011 00:31:27 +0200 Message-ID: <80y601ols0.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi, Tangling this: #+begin_src sh :tangle my-csv2ledger-wrapper.sh :noweb yes #!/bin/bash # my-csv2ledger-wrapper.sh -- Convert CSV files to Ledger data <> |\ <> |\ <> exit 0 #+end_src now gives: --8<---------------cut here---------------start------------->8--- #!/bin/bash # my-csv2ledger-wrapper.sh -- Convert CSV files to Ledger data cat |\ sed -r 's/^([[:digit:]]{2})\/([[:digit:]]{2})\/([[:digit:]]{2})/\2\/\1\/20\3/g' |\ sed -r 's/^([[:digit:]]{2})-([[:digit:]]{2})-([[:digit:]]{4})/\2\/\1\/\3/g' |\ sed -r 's/([[:digit:]])\.([[:digit:]]{3})/\1\2/g' |\ sed -r 's/([[:digit:]]),([[:digit:]]{2})/\1.\2/g' |\ sed -r 's/,/./g' |\ sed -r 's/;/,/g' exit 0 --8<---------------cut here---------------end--------------->8--- which is not executable anymore because the pipe is not ending the line of commands. This is quite recent (v7.6?). Best regards, Seb -- Sebastien Vauban