Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!nuug!dr!thormod From: thormod@dr.uucp (Thormod N{ringsrud) Newsgroups: comp.unix.questions Subject: /bin/sh Message-ID: <620@dr.uucp> Date: 12 Jan 90 14:29:15 GMT Sender: thormod@dr.uucp Lines: 16 Suggestion to enhance /bin/sh ----------------------------------- I often have a need to pick up the last parameter $1, $2 .. from the parameter list. I have tried to catch it by referring $$# which gives me "processnumber"#. Then I tried ${$#} which I really thought would work, but got instead the message: bad variabel substitution. What I really want is a new special variabel: $. (dollarpoint) giving me the last parameter in the list. Thormod N{ringsrud +-------------------------------------------------------------+ ! DataRojahn-> Tel: +479876720 Fax: +479876766 ! ! USENET/EUnet: ...!mcsun!ndosl!dr!thormod or: thormod@dr.uucp! +-------------------------------------------------------------+