From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] hide `Try 'help' for usage' if help doestn't exist in rescue mode
Date: Tue, 8 Sep 2009 16:49:52 +0200 [thread overview]
Message-ID: <20090908144952.GD13674@thorin> (raw)
In-Reply-To: <1252260211.3895.79.camel@fz.local>
On Sun, Sep 06, 2009 at 08:03:31PM +0200, Felix Zielcke wrote:
> I think we shouldn't tell users to type `help' if the command doestn't
> exist in rescue mode, i.e. minicmd isn't included in core.img
> This increases the size of kernel.img for me by 28 bytes. I think it's
> worth.
>
> It's so small I don't bother to attach it:
>
> 2009-09-06 Felix Zielcke <fzielcke@z-51.de>
>
> * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
> `help' if the command exists.
>
> diff --git a/kern/rescue_parser.c b/kern/rescue_parser.c
> index 79f32b8..1e0841e 100644
> --- a/kern/rescue_parser.c
> +++ b/kern/rescue_parser.c
> @@ -61,7 +61,8 @@ grub_rescue_parse_line (char *line, grub_reader_getline_t getline)
> else
> {
> grub_printf ("Unknown command `%s'\n", name);
> - grub_printf ("Try `help' for usage\n");
> + if (grub_command_find ("help"))
> + grub_printf ("Try `help' for usage\n");
> }
>
> quit:
Seems fine.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-09-08 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-06 18:03 [PATCH] hide `Try 'help' for usage' if help doestn't exist in rescue mode Felix Zielcke
2009-09-08 14:49 ` Robert Millan [this message]
2009-09-08 15:00 ` Felix Zielcke
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=20090908144952.GD13674@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.