How does Nushell embeds CoreUtils into its binary? #13100
-
|
When using some functions like But I'm wondering how it's embedded? There is no documentation on coreutils on how to embed these into the binary. I suppose there Nushell has a way to call the embedded coreutils program when it's called a certain way? I'm currently building a shell so I'm genuinely curious about this question :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
uutils/coreutils publish all their commands as crates. so we embed uu_cp, uu_mv, and others. however, there was a lot of work that went into those so that we could use them. settings had to be exposed from the uutils side so we can keep producing nice errors when a uu command fails. you can search our PRs by the coreutils label and find how they were impelmented. |
Beta Was this translation helpful? Give feedback.
uutils/coreutils publish all their commands as crates. so we embed uu_cp, uu_mv, and others. however, there was a lot of work that went into those so that we could use them. settings had to be exposed from the uutils side so we can keep producing nice errors when a uu command fails. you can search our PRs by the coreutils label and find how they were impelmented.