* [PATCH] hide `Try 'help' for usage' if help doestn't exist in rescue mode
@ 2009-09-06 18:03 Felix Zielcke
2009-09-08 14:49 ` Robert Millan
0 siblings, 1 reply; 3+ messages in thread
From: Felix Zielcke @ 2009-09-06 18:03 UTC (permalink / raw)
To: The development of GRUB 2
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:
--
Felix Zielcke
Proud Debian Maintainer
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] hide `Try 'help' for usage' if help doestn't exist in rescue mode
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
0 siblings, 1 reply; 3+ messages in thread
From: Robert Millan @ 2009-09-08 14:49 UTC (permalink / raw)
To: The development of GRUB 2
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."
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] hide `Try 'help' for usage' if help doestn't exist in rescue mode
2009-09-08 14:49 ` Robert Millan
@ 2009-09-08 15:00 ` Felix Zielcke
0 siblings, 0 replies; 3+ messages in thread
From: Felix Zielcke @ 2009-09-08 15:00 UTC (permalink / raw)
To: The development of GRUB 2
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-08 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.