home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!gossip.pyramid.com!pyramid!oracle!unrepliable!bounce
- From: eginsber@oracle.com (Eric Ginsberg)
- Newsgroups: comp.unix.shell
- Subject: Re: how to get the last pos. parameter in ksh?
- Message-ID: <1992Nov10.193506.17834@oracle.us.oracle.com>
- Date: 10 Nov 92 19:35:06 GMT
- References: <KURO.92Nov9112643@vodka.Eng.Sun.Com>
- Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
- Organization: Oracle Corp
- Lines: 9
- Nntp-Posting-Host: dvlseq
- X-Disclaimer: This message was written by an unauthenticated user
- at Oracle Corporation. The opinions expressed are those
- of the user and not necessarily those of Oracle.
-
- Here's two ways (once again using the eval command):
-
- 1) eval lastpos=$"$#"
-
- 2) eval lastpos=$`echo $#`
-
-
-
- --> Ric
-