Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python/grass/script/utils.py: split the command string using shell-li…
…ke syntax on the win32 platform same as on POSIX-compliant platforms * e.g. launch 'd.vect map=census where="cat > 10 AND cat < 20"' with where parameter non-POSIX platform >>> import shlex >>> shlex.split('where="cat > 10 AND cat < 20"', posix=False) ['where="cat', '>', '10', 'AND', 'cat', '<', '20"'] POSIX-compliant platform >>> import shlex >>> shlex.split('where="cat > 10 AND cat < 20"', posix=True) ['where=cat > 10 AND cat < 20'] * launch 'd.vect map=census where="cat > 10 AND cat < 20"' command from MS Windows Command Prompt require use ^ carret symbol for escaping special characters < > ( ) & | , ; " e.g. 'd.vect map=census where="cat ^> 10 AND cat ^< 20"'
- Loading branch information