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 <[email protected]> writes:
> 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 anything with Arg_Check SillyArg
>
> Where did I go wrong?
>
> Thanks
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users