From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Propagate Error Status to the Shell on fw_printenv Errors
Date: Wed, 07 May 2008 08:44:01 +0200 [thread overview]
Message-ID: <87myn2ehqm.fsf@denx.de> (raw)
In-Reply-To: <1210130175-1896-1-git-send-email-gerickson@nuovations.com> (Grant Erickson's message of "Tue\, 6 May 2008 20\:16\:15 -0700")
Dear Grant,
Grant Erickson <gerickson@nuovations.com> writes:
> Changed implementation such that fw_printenv returns failure status when one or more specified variables do not exist or when incorrect command syntax is used.
>
> This aids scripting fw_printenv such that the script can key of the return status rather than relying on standard error "scraping".
Thank you, I think this is useful.
> Tested On:
> AMCC Kilauea
>
> Tests Run:
> root at kilauea# fw_printenv
> bootdelay=5
> baudrate=115200
> ...
> root at kilauea# echo $?
> 0
>
> root at kilauea# fw_printenv -n hostname
> kilauea
> root at kilauea# echo $?
> 0
>
> root at kilauea# fw_printenv -n hostname ipaddr
> ## Error: `-n' option requires exactly one argument
> root at kilauea# echo $?
> 1
But I don't understand what the purpose of the "-n" option is?
Best regards
Markus Klotzbuecher
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
next prev parent reply other threads:[~2008-05-07 6:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 3:16 [U-Boot-Users] [PATCH] Propagate Error Status to the Shell on fw_printenv Errors Grant Erickson
2008-05-07 6:44 ` Markus Klotzbücher [this message]
2008-05-07 7:10 ` Wolfgang Denk
2008-05-07 7:32 ` Markus Klotzbücher
2008-05-07 13:53 ` Grant Erickson
2008-05-07 14:49 ` Markus Klotzbücher
2008-05-07 15:50 ` Wolfgang Denk
2008-05-07 13:56 ` Grant Erickson
2008-05-07 15:55 ` Wolfgang Denk
2008-05-07 7:29 ` Joakim Tjernlund
2008-05-07 14:01 ` Grant Erickson
2008-05-09 21:41 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87myn2ehqm.fsf@denx.de \
--to=mk@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox