From: adrian15 <adrian15@raulete.net>
To: grub-devel@gnu.org
Subject: Re: grub2 miscelanea questions (1/2)
Date: Wed, 06 Jun 2007 20:04:27 +0200 [thread overview]
Message-ID: <4666F72B.8020906@raulete.net> (raw)
In-Reply-To: <200706051834.l55IY56F003249@correoredir01.dinaserver.com>
>> 3) Why any grub2.cfg file (I suppose it's the substitute for menu.lst)
>> is inside the grub2 source code?
>
> What do you mean?
Usually a program should include examples on how to use their files and
document examples and so on... why isn't there any grub2.cfg ?
>> 4) Why any doc folder is inside the grub2 source code?
>
> There is? We need documentation...
:) I might work on this too... but as an unofficial documentation. I do
not like the rigid official documentations.
>
>> 5) grub2 lacks
>> ==================
>> 5.1) pager
>> -------------
>>
>> When I want to do a big ls the output does not stop screen by screen...
>> Is there any hidden pager that I do not know?
>> Maybe is not implemented yet?
>
> set pager=1
>
> It just isn't documented :-/
We should be able to prompt with help command (help variables perhaps?)
these kind of tricks or pseudocommands.
>
>> 5.2) Chainload DEVICES
>> ------------------------
>>
>> How the hell do you boot windows?
>> Maybe from a file that has inside it the first 512 bytes from the
>> Windows partition?
>
> chainload (hd0,1)+
> boot
I've checked that this works:
chainloader (hd0,1)+1
boot
>> 6) Compulsory Argument dilemma
>> ================================
>> If I run help I can seen things like this:
>>
>> ls [-f|-l|-s] NAME
>>
>> and
>>
>> [ EXPRESSION ]
>
> Yes?
>
>> If [ ] means optional it should also mean optional in the case of the
>> test alias [ .!!!
>
> What do you mean?
The [] has not a single meaning in this program.
If it's written after a command in the help description it means: Optional.
If it's used as a program it means that it runs the test command.
It might be confusing for some users I suppose.
Why did not use to new bash syntax? $((variable))
>
>> 7) set help incomplete
>> ========================
>> Set help should say that if no argument is set then it shows all the
>> environment variables.
>
> Why would it? Only using set shows all env. variables.
Because it is a hidden feature.
If you do not how grub does work and type "help set"
it shows "Set an environment variable".
The user is unable to know that "Only using set shows all env.
variables" because it isn't written anywhere.
>> 9) help does not complain when no command help is available
>> =============================================================
> How it currently works is looking at the first characters. For
> example try "help l".
I know... but if the first characters do not match with any command
beginning I think an error should be prompted. Don't you think so?
>
>> 10) help --all
>> =================
>> Do we need this functionality in grub2?
>
> Are there hidden commands for which this is important? In that case,
> yes.
The hipotetical dd command. :)
>
>> 12) ls and -h argument
>> ========================
>>
>> This is not an error but it curious. You can ask for the help of command
>> with this:
>> command -h
>> however
>> ls -h
>> works in a different way.
>>
>> I suppose we may have the same problem with '-u' in the future.
>
> Ehm, I am not sure. You mean `-h' is short for help and we should
> remove it?
I mean that if an user gets used to use the "-h" option for getting grub
commands help then when using ls, he will be confused a little.
adrian15
next prev parent reply other threads:[~2007-06-06 19:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200706051834.l55IY56F003249@correoredir01.dinaserver.com>
2007-06-06 18:04 ` gcs doubt #1 adrian15
2007-06-06 18:04 ` test -e patch adrian15
2007-06-06 18:04 ` adrian15 [this message]
2007-06-06 18:04 ` grub2 miscelanea questions (2/2) adrian15
2007-06-09 7:34 grub2 miscelanea questions (1/2) adrian15
2007-06-05 18:26 ` Marco Gerards
2007-06-07 17:29 ` Robert Millan
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=4666F72B.8020906@raulete.net \
--to=adrian15@raulete.net \
--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.