[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell command substitution?
From: |
Stephen Berman |
Subject: |
Re: eshell command substitution? |
Date: |
Sat, 23 Dec 2023 16:58:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sat, 23 Dec 2023 10:39:49 -0500 Jeff Clough <jeff@jeffclough.net> wrote:
> Good Morning!
>
> Does eshell have command substitution? If so, can someone point me to
> its syntax. My search-fu is failing me.
>
> My usual use case...
>
> $ g++ base.cpp -o base `pkg-config gtkmm-3.0 --cflags --libs`
>
> Backticks don't work, nor does $(...) unsurprisingly.
>
> I've gotta be missing something glaringly obvious here, but I can't find
> an answer.
This should work (see (info "(eshell) Dollars Expansion")):
$ g++ base.cpp -o base ${pkg-config gtkmm-3.0 --cflags --libs}
Steve Berman