From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Why is this not working (apply + call-process + list of string args)? Date: Thu, 15 Sep 2022 15:56:11 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30912"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 16:02:35 2022 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 1oYpRp-0007u5-JW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 16:02:34 +0200 Original-Received: from localhost ([::1]:55794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYpRo-0003Hq-4w for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 10:02:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYpQg-0003He-SP for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 10:01:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYpQg-0002RQ-FQ for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 10:01:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49390) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYpQg-0006u4-82 for gnu-emacs-help@gnu.org; Thu, 15 Sep 2022 10:01:22 -0400 Original-Received: from mail-he1eur04olkn0814.outbound.protection.outlook.com ([2a01:111:f400:fe0d::814]:22455 helo=EUR04-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYpQe-0002Qa-A2 for gnu-emacs-help@gnu.org; Thu, 15 Sep 2022 10:01:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q3u6aVLQ8ArjLlDPvHuDSasXpz1ZrEH5n+C7YGY0vm9QxPv8dnyxsNGBNJ33NKrX+kDD2kO/KHpNnv8+oirf04z0FxltaelQJ7syDw9R2YGUGhM11BEwteZVCDZMvzhIbox+7gASZQg0OxM/lgymBT4hiD309eOUkNmNWnxdlL27QTaoJlNU6by9Kte5TFvXZ44wUssu5d/DVFcGm4ydyKPtWnofZfRSwoJIn1MlncVA4H8XRwDrxQfxx0oX9xlobZJEpuTT3G4vbVBU8gVqIYYDCYdGUtlUXx4qUdHvqHiyrp9yxocYG+xreR3d/UE1Jc2wtDJG9E0jIz5LBAm54A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NEtgTpUGejrRwYusfUZhMIylvCRdFQ2MiwK/SYtG0QQ=; b=mVlO6CVT7FZxoK9WeEWE2x8xGar2Uo3Zt+2mqCMJoJZzkZg+fXwZCW1Gqb5gTZShcmlf/zrjjgZiD4o8/O5YjeKGFD9jzCVqfDnsd9YDNglQPBGzGp50+wUqYWgwPXmzF6gEsdjegGGr+1cteHH25T6X5n4nd4mMKVIZ52XaAB0o/xIqeZFLVHCLqcLeSUpjCLZEHGIBwzfa4oY7fkCJdnopM0KqYoLm/TpqhnjnhZqnjEyLTH3ESsW0jmDX7S3pnSqnoTOt03C2H8D2oG5Yi10dLOphRqpa7pJ8I4xd8Pocl1/9poaX3KsvfbFkXYPXxVhQ/4V+LAK5urE9utbUqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NEtgTpUGejrRwYusfUZhMIylvCRdFQ2MiwK/SYtG0QQ=; b=C/kN7ftYa15VqPdSSRPGJt/Mi5FrZARPEt/ODoe5CpGQhR8OYdvMt0EZCBsEYIGsEV5n29UTuLczSVfJsFukNQKlk1l0d+XnScQjCjZ+GRoictbOO08Q0N1ssYT0aPekLSTaTQcTYVWC0k1L/FqB/imDKrc8zQYZ/fwP5J3vptl1x2SYiLUJGkMp/O8FdHobYjcrA2MLhi5tD3MRAwLg00SZg+cAg5l4vm/Oj4eGOcTyS9MwIPPC35hyokEELsGraEzWIruZJ1vrjh+5465Bc4bZicJBtW1evkMa9w+br/En/WXh+Jw3kXmVwyml3H08FmOzg1uHFaV5bMK+r5fH3g== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM7PR09MB4038.eurprd09.prod.outlook.com (2603:10a6:20b:121::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.19; Thu, 15 Sep 2022 13:56:13 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::10cc:8884:c6d8:a23d]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::10cc:8884:c6d8:a23d%6]) with mapi id 15.20.5632.015; Thu, 15 Sep 2022 13:56:13 +0000 X-TMN: [jGl63Eok0+6ZX+XTTJNbwUVsn80pwk1L] X-ClientProxiedBy: GV3P280CA0048.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::29) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87leqkzqpw.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AM7PR09MB4038:EE_ X-MS-Office365-Filtering-Correlation-Id: 7bd0d28b-0bfc-481d-918c-08da97220d20 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yJ3meaD/t0ZBP/HIEeez0CY+sLZ2Y6oNNZrfMwRy+qztqoCm6qPCu+rKtIOC0L4cOLZtOs565P1fsbspTekOPt2/HYiQ1ygztQLn7HPOm/ed1xq3KbRpY2IqRQMDWJ8BW1vM21MlbQ9kaQPjnDXHNhXVZoX8sgn8bDmmULIJmKIepdffHBEMMbyjWMI6yusuTyhUcAjW4AIDS0OyAdyGY9m2USyC3uXgijxPfpjKqX7BUNLfUbmwqI0UQ5LunpQK1+u1AvQKUMgTrYVqjakRHeYjDEjeA800cOyCepyz1iGYA2SWuLMl78iOEZWnJmzqZmBkD/UYtsMSwgKZnjDWFTizBIILNjLzYT+T5zCnHuRUjkN7YCTnR3ccbCq7kCZ4ALna8PERabZQEulqv8PrgNb/AbR1sOYtvyehum0yjSeNBm6I4eedM5mm134EEECHjZglg7aC0AbrGSRd5qsJ7h9qYRgembMol2S54naiOrKehd7fAcTpFY+LzthjJgbgFnLg4GTO0sZtVj9hnd34rbup6yaRVsu+x8bFXudbmBP/LdVE7ZJII7nLMhkDf5WLusefTnfvVtol5aPlLZZiz4b8a5ME94GoyGYIV8JQoOYgqoPPlFWWhTAPjHV6/h8BA9bxDDnYWPsR+nKFlj1U0g== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?hncGIExAdWYr7lKDVA3/H3WgbCU8OrSPTssSxjD3zEYv4R6Mizh1cNvzdL3W?= =?us-ascii?Q?J3UAzm0JKfjRQ2X/NcyCx07tqfF1jmTrIK1m18oQlEC4srRM75KsP0LdDILB?= =?us-ascii?Q?DA+C1F1YAuPpigNhJcPHg2H4wJmgMJI1pMdyMQErfjiUVcvZOmOC2K/B2qGf?= =?us-ascii?Q?c7ZUk4oSWax0wtmfK/1CyeJwUbLhNxoRkFTDSC5Xy/MQFsDecrKQaLZ009Hb?= =?us-ascii?Q?hdZ5vRV6K/NZ3sotoBTkqDu5jfcgH/D+NlUo2A/Ln87U3mU/I3ol+EB0MzbZ?= =?us-ascii?Q?Rbe16gcD1Ch80To3F4dGxBMpwVVv7SztFFQEy541XNmLlyV26NIuOoxfRpTz?= =?us-ascii?Q?kkfFMOSuXWbIz13rtpoMBkTU1di5/petnxZbz1UkolxiZaGqKjqFV5elQvd6?= =?us-ascii?Q?fdpovTC8D5oO5RvSt+KTFUYf9SzwfkAlN4zo1bj/R2zG1yYbRyRXdm9cn3wC?= =?us-ascii?Q?zJHtFW2iv2WP/IEiNeHHl3A7biE0X0eY3Cc9SSDw0Wt6/jUoeuzexX2dlOhc?= =?us-ascii?Q?kT+1VcIgdk+JRucy0/jk5DZT+/++y7toaz9FLEEBdGqg9+fpaJ+agAE5M72f?= =?us-ascii?Q?vg0PM2PxjdB7T3YaSFY3SBTQXJ5ek8hkSvkYzPO4q3GR1/EN8ZVzd6lZUKU4?= =?us-ascii?Q?i1 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 7bd0d28b-0bfc-481d-918c-08da97220d20 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2022 13:56:13.7416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR09MB4038 Received-SPF: pass client-ip=2a01:111:f400:fe0d::814; envelope-from=arthur.miller@live.com; helo=EUR04-HE1-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.help:139484 Archived-At: I just wonder if someone can explain exact what is going on here: I have a list of strings of arruments I try to pass to configure script. It looks something like this: #+begin_src emacs-lisp (defvar args '("--with-native-compilation " "--with-x " "--with-x-toolkit=no " "--without-gconf " "--without-gsettings " "--with-cairo " "--without-toolkit-scroll-bars " "--with-xinput2 " "--without-included-regex " "--without-compress-install ")) (defun configure (&rest args) (apply #'call-process (expand-file-name "./configure") nil build-log nil args)) (apply #'configure args) #end_src However it does not work, configure script seems to see wrong arguments. I have snitched solution from call-process-shell-command: (defun configure (&rest args) (call-process shell-file-name nil build-log nil shell-command-switch (mapconcat #'identity (cons "./configure" args) " "))) which works fine, but I don't really understand what is going "behind the scenes"; why do I need to start an extra shell process? I guess it has something with how arguments are quoted and passed to call-process, but I am not sure. Clarification appreciated. Thanks in advance.