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:46:48 +0100 Message-ID: <87y1dk50jr.fsf@gmx.net> References: <87msu1x70a.fsf@jeffclough.net> <877cl46hbx.fsf@gmx.net> <87il4oyk2h.fsf@jeffclough.net> <87cyuwyj8y.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="24276"; 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:47:41 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 1rH5A5-00066O-1C for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 17:47:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rH59P-0003LQ-Hz; Sat, 23 Dec 2023 11:46:59 -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 1rH59N-0003L5-09 for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:46:57 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH59K-0007HL-L4 for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:46:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1703350009; x=1703954809; i=stephen.berman@gmx.net; bh=oKnN9wnm0eYxit4btP6YA9Hi2Dpt7w/0FXsMrkhxdCo=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=hC20q+hloEe7Vw8hvD37Qx1bzu3IM1Vazh2XvVTFMhrhLS0F4QfGacpgNhmOBgVL m2xKhq4IJZb9KdOxiIjD4pPcqeCVUTIC6tUrWoo0+smufmiZ25JagcnVhgr1cMdNJ RwDrZpmMzuAeNS1mdTSa7EPUXK+SRVXpR0LjOLj0BZ6Qbjq2Dsdin62D7HxJjOOEk 2VJOJvNxT3HbGeRMaEABarja/XFI4VOdSxm2TC/jtBPzkMQWOvOPpBes/q9HeucgJ 6w5sWJ6wKBDhZ++1EOXDkGjii9vkP9bhiG0iOZsu/IVrAkeNbhVnXCn7kPpOx4nPv wT88RY2O1etJYUl9NQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs2 ([94.134.196.251]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MC30P-1rQjFU1AbN-00CP4W; Sat, 23 Dec 2023 17:46:49 +0100 In-Reply-To: <87cyuwyj8y.fsf@jeffclough.net> (Jeff Clough's message of "Sat, 23 Dec 2023 11:30:05 -0500") X-Provags-ID: V03:K1:UY1SKM2yb5qO0Sd6BBd0EEL9o6qSsNgVcVt28xgcJYS4sPcL6zG fHassEW8Tf7iNDvcaINRQ2jTKxJLGAQT3PuWKLNxFhNAyybKbYwl9ZCFcrkDvQMKf8CecJO unszOxlLFSD7259GG7hIkqvX8cWBejAQDCj7lJhfSdYnX9u0DsKg/RewhirUbsOXUpph5Tp fqegPKvgXVJ5XZJbtlVHg== UI-OutboundReport: notjunk:1;M01:P0:vzjr885ArVQ=;zlCdRO5etc6QAldupRoqUItYidX nl1iCi/++Mk1Q7u4+COAyF0HK6l+ZAj6y/DVg7AP/LlzNgkyGE89sgQxfwAzegP5cDhjPXrEi Mo9vMVJcCuvV5JBCV8xM+Br/TtXQRFYGDbO4BreWJmlrO61orkzZ0YUYTDDEPR3o+qfS/Mc6l YxvIT0/yTKO7exsJRSEyltwpiiHrx8+nRn48UdQCC3J+r1GBOmtBX063I+L89KnhznCpRCs9L k/I4EqXo+s04Lu6HNJ+MM21yaXn7P2RCDE8pvp+0Ma4qu2BeDEgTSyDI0S2yjoqGM/Lue60mR 4yzwIgexNlbuN1Uzof24Ns3Qs7G7p9FZZIZMjDMW0Wv1hyb6nIeholU81ReFD7rSWjZys2Xav EJoMeyzDYPFrwHaXMpTWm83b5VVGU5xo/bn24OzrLKLom4ylci8N7Mxadj+Pv9icazP4hId50 aTjQeektlk5LBTShKweiuy/FT0egox2Wl3Bzf4KKYnl/sL8weuftJVs701ZPpszYYKO7EHKwa QC4T6ejysAgVQAEO5aAy9FFTIqaOJ1P1y5zj4tKJllUWHofnhUOvrJe69DuGA8/LTox3Iw74j UmQshsI0a2s15UxoMEvOBIpsR/JEos2F6EcjKjqoSyuHpM/QBNXAXR26sV3dN952MnDRyN/H1 hjqYbtXZf12OMGl+VUojftAoQrNrbvAhc9uj+wXnbxUDIC+0RSLLifsv/kiMUwJ3aTMbFU+CB 5+NUubwakr559oBB7gADgnOcZnooIvrHosRC/wPd9HkGNFTFlKGs/GV5NliqjC3Hmfcwv285 Received-SPF: pass client-ip=212.227.17.21; 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:145670 Archived-At: On Sat, 23 Dec 2023 11:30:05 -0500 Jeff Clough wrote: > Jeff Clough writes: > >> 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. > > 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