Max number of parameters to korn shell?

Hi All,

what is the maximum limit for the command line arguments in korn shell.

Regards,
Raju

think it's 10.. $0, $1.. $9.. where $0 is the name of script itself for which u take the rest of the arguments..

any corrections there?

It can be a very large number if you use shift(1). In Solaris, I believe the actual number is controlled by _POSIX_ARG_MAX which is 4096 defined in /usr/include/limits.h. My experience with AIX indicates a much lower number, possibly 1024.

Hi Sirisha thanks for your immediate response.

Its not 10.
Its accepting more than that, I tried for 20 also, its taking.

Regards,
Srini

Thanks Hegemaro