perf(windows): fold shell option once#2605
Conversation
|
Hello @joelim-work! Any thoughts on this? I would not even call it a micro optimisation. When comparing compiler optimisations for I just don't know whether this should be mentioned inside the changelog. In theory, this might causes regressions if users relied on checks for the shell and on purpose wrote it in uppercase letters (even though |
|
I guess there's three choices, each of them has some kind of drawback:
TBH I'm very indifferent about this and am happy to leave the decision to you. |
b69ff4c to
e4e11b4
Compare
e4e11b4 to
e388538
Compare
Sorry I realized there's another approach in addition to the above:
Maybe this is the least evil of the possible solutions. |
I thought about this as well. But this is making things more complex than it should be in my opinion. Maybe I am thinking way too deep about such a simple thing which may not be worth changing anyway. |
|
Windows CMD doesn't behave like other shells so there's no way to avoid some kind of complexity as long as it is supported. TBH I don't have a strong opinion on which approach is used, or if the current implementation needs to be changed at all. Although I think I would prefer not to modify the value stored in |
No description provided.