Re: [Fish-users] Arguments to functions

2012-06-03 Thread adisbladis
You should do it like this: function Arg_Check echo $argv[1] end Unlike previous versions of bash (I'm not sure about bash 4) fish has real arrays. Patrick writes: > Sorry for the stupid question everyone. > > In the documentation it mentions the need for $ARGV, so that inner > functio

[Fish-users] Arguments to functions

2012-06-03 Thread Patrick
Sorry for the stupid question everyone. In the documentation it mentions the need for $ARGV, so that inner functions will have access to arguments: function ll ls -l $argv end but I am mixed up about just plain functions: function Arg_Check echo $1 end this doesn't echo anyth