all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Jeff Clough <jeff@jeffclough.net>
Cc: emacs-help <help-gnu-emacs@gnu.org>
Subject: Re: eshell command substitution?
Date: Sat, 23 Dec 2023 16:58:58 +0100	[thread overview]
Message-ID: <877cl46hbx.fsf@gmx.net> (raw)
In-Reply-To: <87msu1x70a.fsf@jeffclough.net> (Jeff Clough's message of "Sat, 23 Dec 2023 10:39:49 -0500")

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



  reply	other threads:[~2023-12-23 15:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-23 15:39 eshell command substitution? Jeff Clough
2023-12-23 15:58 ` Stephen Berman [this message]
2023-12-23 16:12   ` Jeff Clough
2023-12-23 16:29     ` Stephen Berman
2023-12-23 16:34       ` Jeff Clough
2023-12-23 16:30     ` Jeff Clough
2023-12-23 16:46       ` Stephen Berman
2023-12-31  2:19     ` Steven Allen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cl46hbx.fsf@gmx.net \
    --to=stephen.berman@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jeff@jeffclough.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.