1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00
nu_scripts/modules/capture-foreign-env
jaredmontoya a515c4217e
add capture-foreign-env module (#1099)
This is a modified version of [capture-foreign-env command from nushell
wiki](https://www.nushell.sh/cookbook/foreign_shell_scripts.html#detailed-explanation-of-capture-foreign-env).
Unlike the wiki version It relies on `null_byte` instead of `newline` as
a delimiter for environment variables dumped by the `env` command which
allows it to support multi-line foreign environment variables.
2025-04-22 18:10:43 -05:00
..
mod.nu add capture-foreign-env module (#1099) 2025-04-22 18:10:43 -05:00
README.md add capture-foreign-env module (#1099) 2025-04-22 18:10:43 -05:00

capture-foreign-env

This is a modified version of the capture-foreign-env command from the nushell wiki.

Unlike the wiki version It relies on null_byte instead of newline as a delimiter for environment variables dumped by the env command which allows it to support multi-line foreign environment variables.