help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Backticks in Eshell


From: Joost Kremers
Subject: Re: Backticks in Eshell
Date: Thu, 30 Sep 2021 15:38:08 +0200
User-agent: mu4e 1.6.6; emacs 27.2.50

On Thu, Sep 30 2021, Felix E. Klee wrote:
> To generate a one time password, I would do in Bash:
>
>     oathtool -b --totp `gpg -d secret.gpg`
>
> How do I do the equivalent in Eshell?
>
> I tried:
>
>     oathtool -b --totp ${gpg -d secret.gpg}
>
> But that doesn’t work.  Even the following doesn’t work:
>
>     echo ${gpg -h}
>
> I expect GnuPG’s help text, but there’s no output.

Try without the $ sign. This works for me:

    ls -l {which python}

Eshell, unfortunately, isn't very well documented. There's a lot of useful info
in Mastering Emacs[1], tough.

HTH

Joost



[1] https://www.masteringemacs.org/article/complete-guide-mastering-eshell

-- 
Joost Kremers
Life has its moments



reply via email to

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