Comment by amonith

1 month ago

eh `cmd /C "set KEY=value && ./myApp"` isn't that bad if you really need complete isolation.

or directly in powershell, `Start-Process myproc.exe -Environment @{ FOO = 'bar' }`

  • What an absolutely awful syntax.

    How Powershell ever got popular is beyond me.

    • Because it's objects, not text. It "scales" a lot better in your brain because in general you need to know a lot less than in bash. No more awkward sed and awk scripts, manipulating objects is a breeze. Awkward syntax at places where you have to create an object from scratch is a fair price.