Hi!
Quoting BVK Chaitanya, who wrote the following on Wed, 5 May 2010:
Hi,
Attached patch adds function parameters ($1, $2, etc. and $#) support
to GRUB script.. Shell expansion for "$@" and $@ specials is not yet
available.
This is a *great* start, but can you please add support for $* as well as a
shift operator (though shift is not as useful when there are no looping
constructs) so I can do something like this:
function old_multiboot {
multiboot $1 $*
# or
kern=$1
shift
multiboot $kern $kern $*
}
(This duplicates the first argument, important for booting multiboot kernels
that need to see the name of the multiboot kernel file).
Also: Do you think there's value in supporting $0, where that
expands to the function name?
Thanks!
--S
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel