Brian Paul wrote:
> Thanks for the tips, Donnie!  New version attached.
> 
> How does one get the "Nth" command line parameter when N is a variable? 
> I wasn't able to figure that out.

Here's a special case for the last arg, but you can just change the
variable name for others. It's called an indirect reference --
http://tldp.org/LDP/abs/html/ivr.html.

eval last_arg=\$$#

bash has a better way -- ${!last_arg} -- but you're stuck with sh.

> if [ "$1" = "-d" ] ; then
>       # make a directory path
>       $MKDIR $2

"$2" to allow spaces

Thanks,
Donnie

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
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
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to