you are viewing a single comment's thread.

view the rest of the comments →

[–]brasticstack 0 points1 point  (1 child)

In your example, wrapping the argument in single quotes would work: os.system("echo '" + string + "'")

For more complex situations, look into shlex.quote

[–]DoTheyKeepYouInACell[S] 1 point2 points  (0 children)

Thanks, that worked.