Search Results

Search: Posts Made By: Corona688
2,912
Posted By Corona688
getopts sets OPTIND when it finds an argument. ...
getopts sets OPTIND when it finds an argument. What happens when it finds no arguments? It doesn't change OPTIND at all. And you are using it for multiple sets of arguments...

...
2,912
Posted By Corona688
Don't use OPTIND unless getopt actually finds...
Don't use OPTIND unless getopt actually finds anything. I bet you're using the OPTIND from a previous function call, unchanged.
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 05:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy