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 17:46:48 +0100	[thread overview]
Message-ID: <87y1dk50jr.fsf@gmx.net> (raw)
In-Reply-To: <87cyuwyj8y.fsf@jeffclough.net> (Jeff Clough's message of "Sat, 23 Dec 2023 11:30:05 -0500")

On Sat, 23 Dec 2023 11:30:05 -0500 Jeff Clough <jeff@jeffclough.net> wrote:

> Jeff Clough <jeff@jeffclough.net> writes:
>
>> Stephen Berman <stephen.berman@gmx.net> writes:
>>
>>> This should work (see (info "(eshell) Dollars Expansion")):
>>>
>>> $ g++ base.cpp -o base ${pkg-config gtkmm-3.0 --cflags --libs}
>>>
>>> Steve Berman
>>
>> 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.
>
> Wait, no. No, it's not. It's outputting exactly as it should.
>
> If I do this in gnome-terminal, it works...
>
> $ g++ -g -o base base.cpp `pkg-config gtkmm-3.0 --cflags --libs}`
>
> I can run the call to pkg-config by itself, and I get the endless line
> of options I expect.
>
> If I run this in eshell, it doesn't work...
>
> $ g++ -g -o base base.cpp ${pkg-config gtkmm-3.0 --cflags --libs}
>
> I get "g++: error: unrecognized command-line option '...'"
>
> With the enless line of options in quotes, but that's just the compiler
> quoting at me.

I get that with when the pkg-config command is wrapped in backticks, but
with ${} the compilation succeeds for me.

> If I do...
>
> ${pkg-config gtkmm-3.0 --cflags --libs}
>
> In eshell, I get the same result as if I ran pkg-config in
> gnome-terminal.
>
> I'm even more confused.

Strange.

Steve Berman



  reply	other threads:[~2023-12-23 16:46 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 [this message]
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=87y1dk50jr.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.