logoalt Hacker News

dylan604 • today at 2:06 PM • 1 reply • view on HN

Unless you're running a shell command from python. That was the first time I saw a command string broken down into "string" arguments for every thing like that.


Replies

thwarted • today at 2:11 PM

In that case, you're not running a "shell command" from python, you're passing arguments to exec. A shell command would be a string interpreted by the shell, and you'd use that for shell syntax things like having the shell do variable interpolation or redirections as part of executing the command.

➕ show 1 reply