Language: Python v2.6.2 OS: AIX 5.3 I\'m using Python to restore some files from a backup to a test system - all commands are called in the manner below, however some just plain don\'t want to work.
How, in Python, can I use shlex.split() or similar to split strings, preserving only double quotes? Fo开发者_高级运维r example, if the input is \"hello, world\" is what \'i say\' then the output would
I need to parse a command line in elisp, something like: (shlex-split \"command \\\"Some file with spaces\\\" someother\\ quote\")
I\'m using shlex.split to tokenize arguments for a subprocess.Popen call. However, when one of those args is a UNC path, things get hairy:
How can I reverse the results of a shlex.split? That is, how can I obtain a quoted string that would \"resemble that of a Unix shell\", given a list of strings I wish quoted?
Is there a way to send 开发者_Go百科-D directives to an android app? On desktop java I would just do java -Dsomeflag=value.