From: Steven Allen <steven@stebalien.com>
To: Jeff Clough <jeff@jeffclough.net>,
Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-help <help-gnu-emacs@gnu.org>
Subject: Re: eshell command substitution?
Date: Sat, 30 Dec 2023 18:19:40 -0800 [thread overview]
Message-ID: <87le9bun9f.fsf@stebalien.com> (raw)
In-Reply-To: <87il4oyk2h.fsf@jeffclough.net>
Jeff Clough <jeff@jeffclough.net> writes:
> Progress! Running that command, I get the proper output from pkg-config,
> but it's wrapped in single quotes, which the compiler doesn't like.
>
> Playing with the options on the page you linked doesn't seem to help.
The issue is that eshell splits on lines [1], not words. A workaround is to
append `(:S)` [2]:
$ g++ base.cpp -o base ${pkg-config gtkmm-3.0 --cflags --libs}(:S)
[1]: https://www.gnu.org/software/emacs/manual/html_node/eshell/Dollars-Expansion.html
[2]: https://www.gnu.org/software/emacs/manual/html_node/eshell/Argument-Modifiers.html
prev parent reply other threads:[~2023-12-31 2:19 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
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 [this message]
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=87le9bun9f.fsf@stebalien.com \
--to=steven@stebalien.com \
--cc=help-gnu-emacs@gnu.org \
--cc=jeff@jeffclough.net \
--cc=stephen.berman@gmx.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.