-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ASSOC and FTYPE from allowed CMD builtins #6441
Conversation
They no longer function as expected on Win8+: https://stackoverflow.com/a/51727990
Thanks for the find and congrats on the first PR! I think you'll need to change the size of the array too. |
That's what I get for doing this in the web UI 🙃 |
LOL! I was shocked to hear assoc doesn't work any longer. I just used it the other day in Windows 10. I wonder if it's like read-only but not used to set associations? I'd like to try this tomorrow too. |
@fdncred IIUC, assoc/ftype still do what they always did, it's just that Windows has user-level settings for filetype associations as well now which they don't inspect, and which are the ones that get changed in the GUI. |
after looking at this a bit, i'd vote to keep |
No objections from me. |
Seems reasonable enough to me; while other commands are passed through, there's no real cost to also passing these through. Long term, I think it'd be beneficial to remove this passthrough entirely and provide native (and somewhat portable) functionality to replace all of the cmd builtins. Perhaps also the default config can include (if OS is windows) an For now though, I won't push the issue. |
They no longer function as expected on Win8+: https://stackoverflow.com/a/51727990. As such, exposing them through nu doesn't make any sense.
I confirmed on my Win11 machine that
assoc
/ftype
show a file type association from.html
to IE, despite the actual association on my machine being to Firefox.cc @rgwood
cargo fmt --all -- --check
to check standard code formatting (cargo fmt --all
applies these changes)cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect
to check that you're using the standard code stylecargo test --workspace --features=extra
to check that all the tests pass