[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Org source block header argument :var does not support space separat
From: |
stardiviner |
Subject: |
[O] Org source block header argument :var does not support space separated string |
Date: |
Sat, 20 Oct 2018 17:05:33 +0800 |
User-agent: |
mu4e 1.1.0; emacs 26.1 |
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 <address@hidden>"
#+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
- [O] Org source block header argument :var does not support space separated string,
stardiviner <=