[Uboot-stm32] [PATCH 2/2] doc: Switch from printenv to env print
Simon Glass
sjg at chromium.org
Tue Jul 28 11:52:39 UTC 2026
Hi Marek,
On 2026-07-18T23:45:48, Marek Vasut <marek.vasut+renesas at mailbox.org> wrote:
> doc: Switch from printenv to env print
>
> The "env" command is the recommended environment management command,
> its "print" subcommand is the equivalent replacement for legacy "printenv"
> command. Update the documentation to use the contemporary "env print"
> command instead of legacy "printenv" command.
>
> Note that the "printenv" command is unlikely to be removed from U-Boot
> in the near future due to it being integral part of the command line
> ABI.
>
> Implemented using:
> $ sed -i 's@\<printenv\>@env print at g' $(git grep -li '\<printenv\>' doc/) README
It looks like you (correctly) skipped doc/usage/cmd/printenv.rst
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> Reviewed-by: Mattijs Korpershoek <mkorpershoek at kernel.org>
>
> README | 8 ++++----
> doc/README.odroid | 4 ++--
> doc/android/ab.rst | 2 +-
> doc/usage/cmd/askenv.rst | 6 +++---
> doc/usage/cmd/memsize.rst | 2 +-
> 5 files changed, 11 insertions(+), 11 deletions(-)
> diff --git a/README b/README
> @@ -754,7 +754,7 @@ The following options need to be configured:
> - env set/printenv to work with. To run a command stored
> + env set/env print to work with. To run a command stored
This is the one place where the mechanical replacement reads badly.
'setenv/printenv' worked as a shorthand pair, but 'env set/env print'
with the embedded slash is hard to parse.
How about "the env set and env print commands work with" ?
Or "the env set/print commands work with"
In any case:
Reviewed-by: Simon Glass <sjg at chromium.org>
Regards,
Simon
More information about the Uboot-stm32
mailing list