4 ms·
As a follow-up on this comment, I wrote up[0] some more of my discoveries with regard to using nushell structured data pipes from other shells (e.g. bash). Ano
by follower 3y ago
As a follow-up on this comment, I wrote up[0] some more of my discoveries with regard to using nushell structured data pipes from other shells (e.g. bash).
Another variant to allow bash piping but preserving (most of) nushell's data type is with the use of `from/to nuon` commands rather than `from/to json`:
nu --stdin --commands 'ls | to nuon' | nu --stdin --commands 'from nuon | where size > 100MiB'
I also discovered an existing discussion[1] related to this topic which includes a link[2] to a "helper to call nushell nuon/json/yaml commands from bash/fish/zsh" and a comment[3] that the current nushell dev focus is "on getting the experience inside nushell right and [we] probably won't be able to dedicate design time to get the interface of native Nu commands with an outside POSIX shell right and stable.".
[0] https://gitlab.com/RancidBacon/notes_public/-/blob/main/notes/notes--nushell.md#using-nushell-structured-data-pipes-from-other-shells-eg-bash https://gitlab.com/RancidBacon/notes_public/-/blob/main/note...
[1] "Expose some commands to external world #6554": https://github.com/nushell/nushell/issues/6554 https://github.com/nushell/nushell/issues/6554
[2] https://github.com/cruel-intentions/devshell-files/blob/master/examples/nushell/nuon.nu https://github.com/cruel-intentions/devshell-files/blob/mast...
[3] https://github.com/nushell/nushell/issues/6554#issuecomment-1672012053 https://github.com/nushell/nushell/issues/6554#issuecomment-...