Re: missing arguments for script functions

2016-03-31 Thread Andrei Borzenkov
On Thu, Mar 31, 2016 at 11:28 AM, Olaf Hering 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

missing arguments for script functions

2016-03-31 Thread Olaf Hering
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 ___ Gr