grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Parse commandline in grub-xen


From: Olaf Hering
Subject: Re: [PATCH] Parse commandline in grub-xen
Date: Mon, 11 May 2015 19:08:11 +0200
User-agent: Mutt/1.5.22.rev6346 (2013-10-29)

On Mon, May 11, Andrei Borzenkov wrote:

> В Mon, 11 May 2015 14:15:54 +0200
> Olaf Hering <address@hidden> пишет:
> 
> > On Mon, May 11, Andrei Borzenkov wrote:
> > 
> > > Either by allowing ${grub.arg.XXX} (not sure if current grammar accepts
> > > it) or by adding getarg command, something like
> > > 
> > > getarg --name debug --set debug
> > 
> > What would such format buy us?
> 
> Make it possible for you, as script author, have control over which
> arguments and how are used.

'if [ -n "${name}" ]' is simpler than 
'getarg --name name --set name;if [ -n "${name}"]'.
Not sure if 'if $cmd' is supposed to work, but either way your proposal
looks strange.

And regarding $debug itself, with my change its set very early before
any script runs. Perhaps that is useful to debug early issues.


Olaf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]