home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4633 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  884 b 

  1. 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
  2. From: eginsber@oracle.com (Eric Ginsberg)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: how to get the last pos. parameter in ksh?
  5. Message-ID: <1992Nov10.193506.17834@oracle.us.oracle.com>
  6. Date: 10 Nov 92 19:35:06 GMT
  7. References: <KURO.92Nov9112643@vodka.Eng.Sun.Com>
  8. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  9. Organization: Oracle Corp
  10. Lines: 9
  11. Nntp-Posting-Host: dvlseq
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15.  
  16. Here's two ways (once again using the eval command):
  17.  
  18. 1)  eval lastpos=$"$#"
  19.  
  20. 2)  eval lastpos=$`echo $#`
  21.  
  22.  
  23.  
  24. --> Ric
  25.