From 8b210cf2042c42398f19ab18276b8929d9ce3c52 Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Sun, 18 May 2025 15:50:47 -0400 Subject: [PATCH] docs: env doesn't handle the empty string as a variable name --- docs/src/extensions.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/src/extensions.md b/docs/src/extensions.md index 6cd7b8b44..f2d0d894f 100644 --- a/docs/src/extensions.md +++ b/docs/src/extensions.md @@ -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`