From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Org source block header argument :var does not support space separated string Date: Sat, 20 Oct 2018 17:05:33 +0800 Message-ID: <87sh11htsy.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDnCf-0000Qa-4R for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:05:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDnCa-0001Wg-GH for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:05:48 -0400 Received: from [61.175.244.13] (port=30049 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDnCU-0001Qo-54 for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:05:39 -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: org-mode Org source block header argument :var does not support quoted string with space separator like bellowing example: For example **** encrypt text -- ~<<< [TEXT]~ #+NAME: base64 encrypt text #+begin_src sh base64 <<< "stardiviner " #+end_src #+RESULTS: base64 encrypt text : c3RhcmRpdmluZXIgPG51bWJjaGlsZEBnbWFpbC5jb20+Cg== **** decrypt text -- ~-d~ #+begin_src sh :var encrypted="base64 encrypt text" # base64 -d <<< c3RhcmRpdmluZXIgPG51bWJjaGlsZEBnbWFpbC5jb20+Cg== base64 -d <<< $encrypted #+end_src If I use #+NAME: base64-encrypt-text and :var encrypted=base64-encrypt-text, then it works fine. -- [ stardiviner ] don't need to convince with trends. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3