On 4/21/06, ray hammond <[EMAIL PROTECTED]> wrote:
>
>
>
> Does fish have the equivalent for the following standard parameters values?
>
> I scanned the docs and found argv, this give me some but it's not as
> accessible as I'd like:
>
>
>
> $* - This represents the contents of all arguments passed to the shell
>
> $@ - This represents the contents of all arguments passed to the shell

$argv replace both of these. $argv is also the parameter list for
functions. In what way is it less accessible? $argv is slightly
different from both - it's an array, with one element for each
argument. You can get e.g. the fifth srgument from $argv[5], or the
first three arguments from $argv[(seq 3)].



>
> $# - The number of arguments passed to the shell (Got this by user count of
> agrv, an argc would be nice)

(count $argv)

>
> $$ - The id of the present process
>
> $! – The ID of the last background process

Use the 'jobs -l' to save the pid of a process after starting it. See
'jobs --help' for more information.

>
> $? – The exit status of the last command

$status

This is the same as in csh.

>
>
>
> $* and $@ do the same thing with subtle differences.
>
> Thanks
>
>
>
> Ray
>

--
Axel


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to