From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.devel Subject: Re: Question about start-process and argument list Date: Sat, 04 Feb 2023 00:02:35 +0100 Message-ID: <63dd9297.df0a0220.2f942.ab1f@mx.google.com> References: <87r0v7wgrp.fsf@ericabrahamsen.net> <63dd5f91.050a0220.1f3dc.df39@mx.google.com> <878rhel9zf.fsf@ericabrahamsen.net> <87zg9ujr64.fsf@ericabrahamsen.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="13946"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jean Louis , emacs-devel@gnu.org To: Eric Abrahamsen , chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 04 00:03:55 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pO563-0003NB-08 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Feb 2023 00:03:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO55F-0004x1-8f; Fri, 03 Feb 2023 18:03:08 -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 1pO551-0004pL-EJ for emacs-devel@gnu.org; Fri, 03 Feb 2023 18:02:51 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pO54z-0006dG-7K for emacs-devel@gnu.org; Fri, 03 Feb 2023 18:02:51 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id bg26so4981180wmb.0 for ; Fri, 03 Feb 2023 15:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=MooX0jyN0R+40VITVKNqoA4j/LcdkscNHxu5+BL9/r8=; b=CP1OerHaNjPLdj6UHW7IIJVTfSfLF0deqM04IGwvJURTeNLh2d8vqj28D58IQGQMvI k12MQMdSESNFQS7YVXq+llV+sj1LEupmehA2+Nrt2l5zjwo9igJ9EH3Gn/YSHsKYzAuP UlvfJ8IYI14AirrBFks5uLo2Nq7qj1to46CMbX9F3vpPlXLE7QgGv0Dhok1B8hommPIE QNC7INQbfjYsa3k+h68vSdpEX1UqyKlWXCdBtfxveBoY+uSLceb2WvI7XMRTsL1HBUxb oPhMqkXDV6gCoGP3rxn342+J+ANcWI7CgGC/w4wqT/I68QANNMMdILjnWAA256yVCVxd MubQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MooX0jyN0R+40VITVKNqoA4j/LcdkscNHxu5+BL9/r8=; b=BoC0N6gsqTnG2N4306TtAAY/guphsKFypJGn0u/yMkVU0WqqMWxhHGcMtwkw8SRMPC 5SjQoFBJ3DWmcAEUYKpcDMG1tjT2L1j7pjhzREHDSHQyfHQBzaqUX8T5LgT7fA6XCQa+ P0fwPe8caX4iidLZKrt4QaYnv7KXuAQBLnlRKwPHK5tAaVbErUyaMiTzKAs/SL8GwQYr XFcI3efML5ee6hSz3Qvmx2vkx83iJlmn7zll2627CG3FLM3o35w6DKRxw347MXXie+/b V67bCZr4t8OKp5Bm8HRFOJSy62Uj6X8xUko9k9gjHVnw8BWxLW4lv7ZVhwI/sbjI6hAJ T/Kw== X-Gm-Message-State: AO0yUKXJMx2fKIdup3t5vu5ktEprIIFWf5lZpTYGnQQyo4SWjtU4/ZtW CVbHHS1ZTD5eVAY9KVGggrc= X-Google-Smtp-Source: AK7set/Q910nkNAr3z/9dpHESvuXT8l/wssXkycSgf0Wg+xlzdLH7ydzzslLAjBH1x9rwusfTsmaLQ== X-Received: by 2002:a05:600c:35ce:b0:3df:e659:f9d9 with SMTP id r14-20020a05600c35ce00b003dfe659f9d9mr3643899wmq.34.1675465367638; Fri, 03 Feb 2023 15:02:47 -0800 (PST) Original-Received: from tosh-laptop ([2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp.gmail.com with ESMTPSA id r7-20020adff107000000b002c285b4d2b5sm2981750wro.101.2023.02.03.15.02.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 15:02:47 -0800 (PST) Original-Received: by tosh-laptop (sSMTP sendmail emulation); Sat, 04 Feb 2023 00:02:35 +0100 In-Reply-To: <87zg9ujr64.fsf@ericabrahamsen.net> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x335.google.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302940 Archived-At: Eric Abrahamsen writes: > chad writes: > >> On Fri, Feb 3, 2023 at 4:23 PM Eric Abrahamsen >> wrote: >> >>> >>> Kind of sounds like I should be using `start-process-shell-command' >>> again! As I understand it, this is its main selling point. >>> >> >> Have you by chance looked at shell-quote-argument or >> split-string-shell-command? It's been a while since I had to deal with >> this, but I recall the former being helpful then, and it looks like it may >> be meant to handle your situation. > > But, to be clear, my problem doesn't seem to be escaping/unescaping > shell-specific characters, as far as I can see that isn't causing the > trouble. It's passing in the search query as a single argument, when it > contains spaces. It works fine when it's a single string with no spaces > in it. But, if you go the `start-process-shell-command' way, shell escaping is going to be *your* problem (for any possible meaning of shell). And, in this case, you should really consider using `shell-quote-argument'. Bruno