sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.14k stars 213 forks source link

Argument list quotes aren't escaped for PowerShell #318

Open ChristianLW opened 11 months ago

ChristianLW commented 11 months ago

When passing arguments (ending up in options.app.arguments for baseOpen), quotation marks in the passed string(s) aren't escaped with a ` for PowerShell when Windows is the current platform. This causes things like --user-data-dir="foo" to make the function silently fail.