home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4652 < prev    next >
Encoding:
Text File  |  1992-11-11  |  698 b   |  19 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mcsun!Germany.EU.net!rzsun2.informatik.uni-hamburg.de!news.DKRZ-Hamburg.DE!regen.DKRZ-Hamburg.DE!m212022
  3. From: m212022@regen.DKRZ-Hamburg.DE (Wolfgang Welke)
  4. Subject: Re: how to get the last pos. parameter in ksh?
  5. Message-ID: <1992Nov12.072817.21136@news.DKRZ-Hamburg.DE>
  6. Sender: welke@dkrz-hamburg.dbp.de
  7. Organization: Deutsches Klimarechenzentrum GmbH, Hamburg
  8. References: <KURO.92Nov9112643@vodka.Eng.Sun.Com> <1992Nov10.193506.17834@oracle.us.oracle.com>
  9. Date: Thu, 12 Nov 92 07:28:17 GMT
  10. Lines: 7
  11.  
  12.  
  13. eval last=\${$#}
  14.   and
  15. eval echo \${$#}
  16.   are short ( no unnecessary `echo ...` )
  17.   and complete ( {} needed to deal with 10 or more parameters )
  18.  
  19.