Thanks for that. I guess I am use to obtaining these values a certain way. Maybe I am being narrow minded and resisting change.
-----Original Message----- From: Axel Liljencrantz [mailto:[EMAIL PROTECTED] Sent: 21 April 2006 01:10 To: ray hammond Cc: [email protected] Subject: Re: [Fish-users] Special Paramter Values 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.5/321 - Release Date: 21/04/2006 ------------------------------------------------------- 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&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
