1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

docs: env doesn't handle the empty string as a variable name

This commit is contained in:
Jeremy Smart 2025-05-18 15:50:47 -04:00
parent a5a9f7d44d
commit 8b210cf204
No known key found for this signature in database
GPG key ID: 5AD8086D5DF29A8F

View file

@ -22,8 +22,12 @@ $ ls -w=80
## `env`
`env` has an additional `-f`/`--file` flag that can parse `.env` files and set
variables accordingly. This feature is adopted from `dotenv` style packages.
GNU `env` allows the empty string to be used as an environment variable name. This is explicitly
unsupported by the Rust standard library (see the
[docs](https://doc.rust-lang.org/stable/std/env/fn.set_var.html) for more information), so uutils
will show a warning on any such assignment. `env` has an additional `-f`/`--file` flag that can
parse `.env` files and set variables accordingly. This feature is adopted from `dotenv` style
packages.
## `cp`