4 ms·
Any gotchas with running the same scripts on Windows and Linux? I've been thinking about switching to PowerShell. Love it on Windows. Never tried it on Linux bu
by joombaga 5y ago
Any gotchas with running the same scripts on Windows and Linux? I've been thinking about switching to PowerShell. Love it on Windows. Never tried it on Linux but I did try it on macOS a few years ago and remember some quirks. Currently a bash (over)user.
- psyclobe 5y agoOne gotcha is powershell core has some different apis then the 'windows powershell', best to deploy core on both systems to unify the api. Also powershell has no support for automatically handling external shell commands that error, you must manually check $LASTEXITCODE (easily done with a custom invoke api that you use for everything). Also well, some of the escaping in strings is really odd...