[PATCH rtems-tools] rtemstoolkit: Fix shlex.split to use posix mode and add unit test for pipe operation
Chris Johns
chrisj at rtems.org
Wed Jun 21 04:29:12 UTC 2023
On 21/6/2023 2:22 pm, Muhammad Sulthan Mazaya wrote:
>> On 21/6/2023 11:55 am, Muhammad Sulthan Mazaya wrote:
>> > Turns out subprocess.Popen operates on posix mode.
>>
>> Is this true for non-POSIX systems?
>>
>> Where is this documented?
>
> It's not, turns out it is also dependent on the system too. It is documented
> here https://docs.python.org/3/library/subprocess.html#subprocess.Popen
> <https://docs.python.org/3/library/subprocess.html#subprocess.Popen>. Should I
> add a check like this instead?
I think this is more important:
https://docs.python.org/3/library/shlex.html
I think removing `posix=` from the argument as in your first patch makes our
command parsing conform to POSIX and that seems like a good thing for us.
I will apply the first patch.
Thanks
Chris
More information about the devel
mailing list