From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: eshell command substitution? Date: Sat, 23 Dec 2023 17:29:32 +0100 Message-ID: <8734vs6fwz.fsf@gmx.net> References: <87msu1x70a.fsf@jeffclough.net> <877cl46hbx.fsf@gmx.net> <87il4oyk2h.fsf@jeffclough.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-help To: Jeff Clough Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 17:30:25 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rH4tN-00050o-K6 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 17:30:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rH4sh-0005WH-SA; Sat, 23 Dec 2023 11:29:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH4sf-0005Vl-NZ for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:29:41 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH4sd-0002Rn-OL for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:29:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1703348973; x=1703953773; i=stephen.berman@gmx.net; bh=fmaT0WrhWRi3OP6akCk/FMlzZkK4+OjTnK66TziWqq8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=QofRHehsNirUmuXWIlZzjnBAJPISneCvy8VX1E70xGPd8DHp2vYuS6TVSnwJOZMb i/p7WR7SM1GCsKCHn2Da3caxJTCC9xDbj7tIdwDvtopqemXapMfEGpW+RKisoP3ig Lkue+B1In8jtg+YUsGCOynvS+LXXXZMN8oOPITXGCttgd/G3nzxbiVBUCpyxFuwzv TlWvXculXGl2ozyRjKBzoDCeIE0RMhMHOgI1A0uQwm9k7Q7oIX2jq1hO/wbP194iI 3pstcxzIoVq6Pi5wDprTS+xKCpozpbMH96jejNdB4pSXfofgkW7rlRk2wK2v8Gmif HqXR+CplmDiIkg4+VQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs2 ([94.134.196.251]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MTRMi-1rifrt1xhU-00ToJg; Sat, 23 Dec 2023 17:29:33 +0100 In-Reply-To: <87il4oyk2h.fsf@jeffclough.net> (Jeff Clough's message of "Sat, 23 Dec 2023 11:12:22 -0500") X-Provags-ID: V03:K1:iWcgWJjeNYKMygIwXZ37xFjCoHHZtv36ZLqyV8X+0d4fWtftpa8 Ax5i4ekFO+3Y8nSsF4egtYq9rmpTbE9XGG7OT/o0hQINoxMLBDQX9WczLjvvgsXLu6THCDu kMztvU97Es0WS2q/lmqKFKQDCGwF+dGM4mt9Pp0/WgYJCC14CsLVTFsKU8IH0II3uA8YC3U rFNVATzirRSY0KVZL3RnQ== UI-OutboundReport: notjunk:1;M01:P0:R61EFmUxNrE=;6j2IdXI6NEJROFBsTZ8gL7tQGrp 3T92mXxy8mgdNqJkIky0ASq2X7RaWHtrvTaasKoxLbA5ugx2WRQdqLKS6ydYzigs1Bj6OKKnE NSrPmki2NNmR8c2xRL9hItJj9ZBxIYSw26OcNkwhroJUSdVNcayXR++s67JBetjzKHKUj6Uks 2NBDMSrOl90m7Ipz510nZ2Lt3a0Be7FZjii9PqScpd4MYheNySTQNDCkVQTVkYMgDAdh64r5l CwD3FiUmiW4l3CN7Zww1SU6z8E56FclPBBxPeS9EzZDquNx+cRMcR62XOUfv0qMIwf7tcJ56L MS8Gcuqq5Da0ccthoajVnDbcMMV8Ls7iEqcoB0VIdGTmj7CskG6SPs3/Buu/GZf2MzuubW4R0 juF0pAEaR6jj/WU7sBcIoC/dsLUL/BQJLMwAsXcE+2nKAJ0f084XmJFgjW+HnEvzCT8ydUMUc zAAGXFpY/R5RuY8I3fK71zPXFPQ88UU2e3/P++KFDPn6bfvDLi37dxy5/6wk11nElpv75pu2N zCDmLc0K8mg5AiU9234otjEUrTSNC10cBDUVqtDZQj0bLBkBO+3TVbQRP03hXlAbG507MY/5Z sgTQKAZzlbTGUTe0klRwSEi0jdgwQZVo4SFP3KjDk3KGR6sSuXEtnTWedPVMQAYXtMoEzEZ15 wuwAQxrjlEnPm5QKIwrIfuqAJHrn20h6gY8HKo18Jk7bs/UhcXRgoJz+fsmkWhBvyvn1Y3sDT RPQkZmNdcNwB/UYhyTPxfWw8I4BbwQ82EkhD4cMAkZfH6uiZdt4xUsF0PDjYWBXNobVPSeOK Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145667 Archived-At: On Sat, 23 Dec 2023 11:12:22 -0500 Jeff Clough wrote: > Stephen Berman 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. Hm, it works for me, i.e. the file (I took a random file of C++ source code) was compiled and an object file produced. Also, when I run `print ${pkg-config gtkmm-3.0 --cflags --libs}' in Eshell the output is not wrapped in any quotes. This is with both emacs-29 and emacs-30. Are you using a different version? Steve Berman