Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdahl!jonc From: jonc@uts.amdahl.com (Jonathan Chang) Newsgroups: comp.unix.questions Subject: SOLUTION to ksh argument parsing Message-ID: <253e02dac4MH01@amdahl.uts.amdahl.com> Date: 31 Aug 90 20:13:08 GMT Reply-To: jonc@amdahl.uts.amdahl.com (Jon Chang) Distribution: comp.unix.questions Organization: Sunnyvale CA Lines: 7 Thanks for all the responses! The most popular (and easiest) way to extract the last argument passed to a ksh script is: eval lastarg=\${$#} $# == the total number of arguments