From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: (no subject) Date: Sat, 20 Oct 2018 17:02:46 +0800 Message-ID: <87tvlhhtxl.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]:38210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDn9t-0007ki-Iv for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDn9p-0007Lp-36 for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:02:57 -0400 Received: from [61.175.244.13] (port=24612 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDn9l-0007Gk-F4 for emacs-orgmode@gnu.org; Sat, 20 Oct 2018 05:02:51 -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