Error in argument parsing for functions in pipelines
fn demo arg:[str]
echo @_arg
end
demo [h a a a] # >>> h a a a
echo a | demo [h a a a] # ion: invalid number of function arguments supplied
The problem is that args are expanded prior to being passed to the function, then again in the function.