* Handling of quotes by start-process
@ 2024-03-22 15:37 André A. Gomes
2024-03-22 15:43 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: André A. Gomes @ 2024-03-22 15:37 UTC (permalink / raw)
To: help-gnu-emacs
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.
--
André A. Gomes
"You cannot even find the ruins..."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Handling of quotes by start-process
2024-03-22 15:37 Handling of quotes by start-process André A. Gomes
@ 2024-03-22 15:43 ` Eli Zaretskii
2024-03-22 16:20 ` André A. Gomes
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-03-22 15:43 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Handling of quotes by start-process
2024-03-22 15:43 ` Eli Zaretskii
@ 2024-03-22 16:20 ` André A. Gomes
0 siblings, 0 replies; 3+ messages in thread
From: André A. Gomes @ 2024-03-22 16:20 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
> I think you don't need the '..' quotes: the ".." quotes already
> specify a single string.
Correct, it is obvious in hindsight. Thanks.
--
André A. Gomes
"You cannot even find the ruins..."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-22 16:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 15:37 Handling of quotes by start-process André A. Gomes
2024-03-22 15:43 ` Eli Zaretskii
2024-03-22 16:20 ` André A. Gomes
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).