shlex for windows
- Free software: Apache Software License 2.0
- Documentation: https://mslex.readthedocs.io.
This is the missing shlex package for windows shell quoting. It provides three functions -- split, quote, and join -- just like shlex.
These are excellent articles to read if you really want to face the sanity-melting reality buried under the surface of how windows passes command line arguments to your programs. I recommend you read something else.
- How a Windows Program Splits Its Command Line Into Individual Arguments
- Everyone quotes command line arguments the wrong way
If you want to automatically use mslex on Windows, and shlex otherwise, check out the oslex package.