-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
nushell: chmod
functionality
#5328
Comments
Let's see. I assume your talking about these parts: https://github.com/uutils/coreutils/blob/main/src/uu/install/src/mode.rs (the whole file) and coreutils/src/uu/mkdir/src/mkdir.rs Lines 163 to 178 in 2789885
and I guess also this function from coreutils/src/uu/chmod/src/chmod.rs Line 389 in 2789885
Additionally they all have some code for parsing the mode. Yeah, I think it would be nice to combine these as much as possible! As long as they really are compatible and don't use, for example, slightly different formats for the mode. |
I went into the GNU's
And I also found this, which is just delightful:
|
Please don't do that. We can't base our code on GNU's code directly, because of license reasons. We have to base our implementation on the output, tests and documentation. |
Got it. Somewhat thankfully, I couldn't figure it out, so I went to the documentation. |
Both
mkdir
andinstall
seem to use their own slightly different version of thechmod
function. And neither have the detailed logic of thechmod
crate. Should there be a functionchmod
function inuucore
? Or is there a reason to keep them separate?The text was updated successfully, but these errors were encountered: