emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org source block header argument :var does not support space sep


From: Nicolas Goaziou
Subject: Re: [O] Org source block header argument :var does not support space separated string
Date: Sat, 20 Oct 2018 22:17:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

stardiviner <address@hidden> 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 <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.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]