Conversation
|
I think it is something Cygwin should care about instead of shell. |
|
@oech3 is that an argument specifically for I think |
|
Hmm... I did't know that |
|
Are you planning to suggest this to upstram |
|
@puffnfresh thanks for the contribution! It's good to know that some simple changes would unblock more scripts from running natively on Windows under I also support the idea of being able to use more scripts in a cross-platform way without requiring emulation layers like Cygwin. Regarding the change, you're right that we have precedent with I'm supportive of special handling for We use the This would allow Unix platforms to open the real null file, which is likely to look more consistent with other shells, while still enabling scripts to achieve the desired effect elsewhere. |
Public API changes for crate: brush-coreAdded itemsPerformance Benchmark Report
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is Test Summary: bash-completion test suite
|
reubeno
left a comment
There was a problem hiding this comment.
Change look good to me, @puffnfresh. Thanks for the update!
Looks like the PR checks flagged formatting issues -- and you'll need to rebase/merge latest changes.
This allows some scripts to run on Windows, which otherwise fail because the /dev/null device does not exist. This is similar to the existing special /dev/fd handling which Brush already contains.
|
Merged! Thanks for working on this, @puffnfresh. There was just one last clippy warning that I fixed for you so I could get it merged. If you end up using this on Windows, would be great to hear what your experience is like / what you're able to do. If you're up for it, feel free to post issues / discussions here on GitHub or on our Discord. |
This allows some scripts to run on Windows, which otherwise fail because the /dev/null device does not exist. This is similar to the existing special /dev/fd handling which Brush already contains.