help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling of quotes by start-process


From: Eli Zaretskii
Subject: Re: Handling of quotes by start-process
Date: Fri, 22 Mar 2024 17:43:34 +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 via email to

[Prev in Thread] Current Thread [Next in Thread]