Hello,
I need to improve my understanding about how subprocess.Popen() does
quote arguments. I have special case here.
Simple example:
Popen(['ls', '-l']) results on a shell in "ls -l" without quotation.
Quotes are added if they are needed:
Popen(['ls', 'folder with blank']) results on a shell in
"ls 'folder with blank'".
Am I right so far with the basics?
Is there a way to be sure and to debug how Popen() give it to the shell?
I need to improve my understanding about how subprocess.Popen() does
quote arguments. I have special case here.
Simple example:
Popen(['ls', '-l']) results on a shell in "ls -l" without quotation.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 448 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:16:07 |
Calls: | 9,254 |
Calls today: | 6 |
Files: | 13,501 |
Messages: | 6,068,275 |