On Thu, Mar 31, 2016 at 11:28 AM, Olaf Hering <o...@aepfle.de> wrote:
> Is this supposed to work?
>
> function f() {

This gives syntax error to me. But

function f {
echo $1
}

works.

>   set x="$1"
>   set y="$2"
>
>   echo "${x} ${y}"
> }
>
> f "a" "b"
> f "c" "d"
>
> In my testing the positional arguments are not provided to f().
> At least when the code above is loaded via 'configfile "${var}"'.
>
> Olaf
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to