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
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