unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Handling of quotes by start-process
Date: Fri, 22 Mar 2024 17:43:34 +0200	[thread overview]
Message-ID: <861q821dcp.fsf@gnu.org> (raw)
In-Reply-To: <87h6gyjn04.fsf@gmail.com> (message from André A. Gomes on Fri, 22 Mar 2024 17:37:47 +0200)

> From: André A. Gomes <andremegafone@gmail.com>
> Date: Fri, 22 Mar 2024 17:37:47 +0200
> 
> Hi,
> 
> I'm launching a process via the (valid) command below
> 
> --8<---------------cut here---------------start------------->8---
> nix-shell -p sbcl --run 'sbcl --dynamic-space-size 3072'
> --8<---------------cut here---------------end--------------->8---
> 
> via
> 
> --8<---------------cut here---------------start------------->8---
> (start-process "test" (get-buffer-create "test") "nix-shell" "-p" "sbcl" "--run" "'sbcl --dynamic-space-size 3072'")
> --8<---------------cut here---------------end--------------->8---
> 
> and it returns the error below:
> 
> --8<---------------cut here---------------start------------->8---
> /tmp/nix-shell-13722-0/rc: line 3: sbcl --dynamic-space-size 3072: command not found
> 
> Process test<1> exited abnormally with code 127
> --8<---------------cut here---------------end--------------->8---
> 
> Is this a bug or am I missing something?  Thanks.

I think you don't need the '..' quotes: the ".." quotes already
specify a single string.



  reply	other threads:[~2024-03-22 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22 15:37 Handling of quotes by start-process André A. Gomes
2024-03-22 15:43 ` Eli Zaretskii [this message]
2024-03-22 16:20   ` André A. Gomes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861q821dcp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).