Hello All;
Is there some special variable in the shell that stores all '--' options. I have an old script which I pass three variables to, and I am trying to add the passing of the option which will affect the logical flow of script. I don't want to have to get each variable and then perform a check to see if it is the '--option'. I would like to use the built-in options variable (if one exists) and simply check that the correct option has been passed.
Any and all help is greatly appreciated.
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
Is there some special variable in the shell that stores all '--' options. I have an old script which I pass three variables to, and I am trying to add the passing of the option which will affect the logical flow of script. I don't want to have to get each variable and then perform a check to see if it is the '--option'. I would like to use the built-in options variable (if one exists) and simply check that the correct option has been passed.
Any and all help is greatly appreciated.
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)