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

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

Re: eshell command substitution?


From: Steven Allen
Subject: Re: eshell command substitution?
Date: Sat, 30 Dec 2023 18:19:40 -0800

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



reply via email to

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