what is the maximum number of parameter we can pass to a shell script function
There is no limit
thanks
After $9, they have to be referenced as ${10} ${11} .... ${n}
And there are limits, but they are based on the number of bytes: ARG_MAX - the number of bytes in the environment variables already in use:
approximately -
echo $(( $(getconf ARG_MAX) - $(set | wc -c ) ))
Good to know this information
not working
my script accept only 9 para meter
shift can be used if you want to call it with single decimal
shift n
How do you understand this?
May be your script is wrong
Which commands did you use?
Please send error message or last state?
Have you referenced them as Jim mentioned?