Retrieves the value of the specified built-in or custom option.

Parameters

Parameter Description
option_name String value of the built-in or custom option.

Returns

Returns one of the following, depending upon the attributes defined for the option.

  • Return value of func (after execution) if a function is associated with the option
  • Default value, if one is specified for the option
  • Value of the option, as passed to the script
  • Undef if none of the above are specified