All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Zielcke <fzielcke@z-51.de>
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, 08 Sep 2009 17:00:18 +0200	[thread overview]
Message-ID: <1252422018.2872.6.camel@fz.local> (raw)
In-Reply-To: <20090908144952.GD13674@thorin>

Am Dienstag, den 08.09.2009, 16:49 +0200 schrieb Robert Millan:
> 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.
> 

Ok thanks. Commited.

-- 
Felix Zielcke
Proud Debian Maintainer




      reply	other threads:[~2009-09-08 15:00 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
2009-09-08 15:00   ` Felix Zielcke [this message]

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=1252422018.2872.6.camel@fz.local \
    --to=fzielcke@z-51.de \
    --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.