From 8b210cf2042c42398f19ab18276b8929d9ce3c52 Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Sun, 18 May 2025 15:50:47 -0400 Subject: [PATCH 1/3] 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` From d9e8244e023689e551d6711f762c3bd6aeea3ac6 Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Sun, 18 May 2025 20:55:49 +0000 Subject: [PATCH 2/3] Update docs/src/extensions.md Co-authored-by: Sylvestre Ledru --- docs/src/extensions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/extensions.md b/docs/src/extensions.md index f2d0d894f..ca4d98036 100644 --- a/docs/src/extensions.md +++ b/docs/src/extensions.md @@ -25,7 +25,9 @@ $ ls -w=80 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 +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. From 696dd3c0cdbbbc964268a745b4646304424a95a2 Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Sun, 18 May 2025 17:08:05 -0400 Subject: [PATCH 3/3] remove information about implementation details --- docs/src/extensions.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/src/extensions.md b/docs/src/extensions.md index ca4d98036..1e715f729 100644 --- a/docs/src/extensions.md +++ b/docs/src/extensions.md @@ -22,10 +22,9 @@ $ ls -w=80 ## `env` -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. +GNU `env` allows the empty string to be used as an environment variable name. +This is unsupported by uutils, and it 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