Re: [PATCH 2/2] doc: Switch from printenv to env print

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszTirw4Dd=XP5JU2abhYNH-stVqEsRcppA8z4WC5XAkRoBw@mail.gmail.com>
Hi Marek,

On 2026-07-18T23:45:48, Marek Vasut <[email protected]> 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@g' $(git grep -li '\<printenv\>' doc/) README

It looks like you (correctly) skipped doc/usage/cmd/printenv.rst

>
> Signed-off-by: Marek Vasut <[email protected]>
> Reviewed-by: Mattijs Korpershoek <[email protected]>
>
> 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 <[email protected]>

Regards,
Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.