grub-devel
[Top][All Lists]
Advanced

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

missing arguments for script functions


From: Olaf Hering
Subject: missing arguments for script functions
Date: Thu, 31 Mar 2016 10:28:19 +0200
User-agent: Mutt/1.5.24 (6598)

Is this supposed to work?

function f() {
  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



reply via email to

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