[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47239] calling system without shell
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #47239] calling system without shell |
Date: |
Sun, 27 Mar 2016 03:15:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.7.1 |
Follow-up Comment #4, bug #47239 (project octave):
> At least for Linux, this looks pretty easy.
Yes, I made a trivial test patch that worked on Linux.
However, for Windows it was not so simple. As far as I could find, there was
no way to do it. All the documentation I found recommended use of
CreateProcess
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
to handle this. But this function does not accept a list of arguments. We
would end up having to concatenate the arguments, which would require we
escape characters, which does not solve the original problem --- not having to
escape things which is business trickier than it looks like.
My notes point to
https://stackoverflow.com/questions/4243880/substitute-for-forking-in-windows
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47239>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/