I have a script that has the following lines of code followed by other lines of code.. I'm not quite sure about the syntax in line #2, specifically ":-" ..what operation does it perform?
will attempt to assign the value in the IA_DAYS variable to IA_DAYS . If IA_DAYS is not defined/empty, then 90 is used. This technique is used to allow the variable to be set externally if the user desires, but ensures that it has a value.
In this particular case, it is used to set the value if $2 is not defined on the command line. It could also have been written: