Operating System - HP-UX
1753366 Members
5044 Online
108792 Solutions
New Discussion

Re: ksh: optional parameter (possible use of getopts)

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: ksh: optional parameter (possible use of getopts)

>so it is better to store $# in a variable at the beginning like cnt_args=$#

 

Yes.  But what is that check trying to do?  What illegal input is it trying to catch?

support_billa
Valued Contributor

Re: ksh: optional parameter (possible use of getopts)

> Yes.  But what is that check trying to do?  What illegal input is it trying to catch?

 

in this case it make no sense.