From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeff Clough Newsgroups: gmane.emacs.help Subject: Re: eshell command substitution? Date: Sat, 23 Dec 2023 11:30:05 -0500 Message-ID: <87cyuwyj8y.fsf@jeffclough.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="28324"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-help To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 17:39:53 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 1rH52W-0007Ae-UV for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 17:39:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rH52B-0000n3-Ec; Sat, 23 Dec 2023 11:39:31 -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 1rH520-0000ky-86 for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:39:21 -0500 Original-Received: from butterfly.birch.relay.mailchannels.net ([23.83.209.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rH51s-0005N8-MR for help-gnu-emacs@gnu.org; Sat, 23 Dec 2023 11:39:20 -0500 X-Sender-Id: dreamhost|x-authsender|jeff@jeffclough.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A6DDE842633; Sat, 23 Dec 2023 16:30:07 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a295.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4425D842476; Sat, 23 Dec 2023 16:30:07 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1703349007; a=rsa-sha256; cv=none; b=8M25rii7E/htwB8gD/jfSbuH+PSJAx8bDIdbVw7Q9ARMo4dLDP6wnk8dnPuPO3gc13nphL a8FN+UMeKit+pqvvOJsPvQSHzt7tpyZZcrJmxqFsDaMYuK/dEwcilBFKq+qcd3laJdrTAz FDEg35LISejqpaAShO5fe9PSLENpZj9vBYhcpg3J0kcbrBXXPOBCiiz5YtPxUdKGV9Y9jM vPwDona7nFtO/ptB8pqdNU7TTfciWzOM/MHQQp2/MOBoADWoF15mZW4+4XgDgTdtkqCfZQ JrsY4Z0+UyiE3Of1rmO7Phf5ZanF60ead2e8ft7UIMgiYetqW3tJ4TcXi2N/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1703349007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zw3CgPgKnQFXXsDl5TpqZO9rOVMC4H6qq86TekgeZyQ=; b=eF+h+upfwvBpy1hL/W61agWMZuVUrQCMesLqeRlnVD4v1BDRnMWKwBmh5aL7sDUfxtHUWv V0424WmRsKkznM9MWpIpuWDgH57FYTgZZ+DQlo31Npvcm61+gFP5KP9J5lpoaQrE/sgYSt WL3MnpfA5FgRJiExzfo9LdYJMUtPZ3AnIUSAo8GyAWu0fAZcV9He/wcgSBm5vNTKYYaYLE YcKbJ3qVTtoVyVUlY1S2SO9vZhkeG+0q7iA3lagI1F0aMMZncShLC4jvKNpqfvwanki5p/ XEoluxdBiQmnAA21sEKwxI+ltf1XF0ubOtTT939/0kqarGR6juULdE6fXvqFpg== ARC-Authentication-Results: i=1; rspamd-659dcc87c8-bzm68; auth=pass smtp.auth=dreamhost smtp.mailfrom=jeff@jeffclough.net X-Sender-Id: dreamhost|x-authsender|jeff@jeffclough.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jeff@jeffclough.net X-MailChannels-Auth-Id: dreamhost X-Spot-Arch: 1240f004397c7c35_1703349007501_2580151056 X-MC-Loop-Signature: 1703349007501:1300206663 X-MC-Ingress-Time: 1703349007501 Original-Received: from pdx1-sub0-mail-a295.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.248.43 (trex/6.9.2); Sat, 23 Dec 2023 16:30:07 +0000 Original-Received: from jvcnix (c-24-147-205-93.hsd1.nh.comcast.net [24.147.205.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jeff@jeffclough.net) by pdx1-sub0-mail-a295.dreamhost.com (Postfix) with ESMTPSA id 4Sy8lf5F61z6w; Sat, 23 Dec 2023 08:30:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeffclough.net; s=dreamhost; t=1703349007; bh=zw3CgPgKnQFXXsDl5TpqZO9rOVMC4H6qq86TekgeZyQ=; h=From:To:Cc:Subject:Date:Content-Type; b=RiPLfybUcvq9EyoleilzhTbZra8Y/pcuml9RnQNLe5ZH2XUzsYAsRDSkmZNq/pHlw 0E43x61uPZU3zGKGXx7sKRacyDFxl5Rgca/+PPDVIrj6wc7ov/qzzQ0uLaNFuhHvow xuJ8oyiGUG8ZW57piYo67W7sDNkDFwbM79YUGROcb8PmyhQuHes7nXbKPb3IYFb8w4 esoAqt3b1U4G581r/JauORsS4qY9PYayigJLxcXBHNrdFE+TzSfQKtmjGjo7ePd6wu ZmFZCGPp27uVkCEN/PB1ZToe6oTqWgBKyy1J9MgvraiOyPzHR6J9oRfjdWbFGKFjm4 9NNhJEaYJ3gEQ== In-Reply-To: <87il4oyk2h.fsf@jeffclough.net> (Jeff Clough's message of "Sat, 23 Dec 2023 11:12:22 -0500") Received-SPF: pass client-ip=23.83.209.27; envelope-from=jeff@jeffclough.net; helo=butterfly.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=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:145669 Archived-At: 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. 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. Jeff