Hello, stardiviner <[email protected]> writes:
> 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 <[email protected]>" #+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. I cannot reproduce your issues, literally. It complains about a redirection error or something. Anyway, I tried the following block: #+begin_src emacs-lisp :var encrypted="base64 encrypt text" encrypted #+end_src and the output is #+results: : base64 encrypt text which means there doesn't seem to be a problem with strings within quotes. Regards, -- Nicolas Goaziou
