Contradiction in script resource doc
Description
The script resource doc contains the following text:
Inheritance
The guard_interpreter property is set to :default by default for the bash, csh, perl, python, and ruby resources. When the guard_interpreter property is set to :default, not_if or only_if guard statements do not inherit properties that are defined by the script-based resource.
Warning
The batch and powershell_script resources inherit properties by default. The guard_interpreter property is set to :batch or :powershell_script automatically when using a not_if or only_if guard statement within a batch or powershell_script resource, respectively.
My understanding is that both paragraphs are in contradiction: the first one states that guard_interpreter default value for bash resources is :default (meaning properties are not inherited) while the second one states that guard interpreter default value for bash resources is :bash (meaning properties are inherited)
I don't know which one is the right one, but I had to write guard_interpreter :bash in my bash resource to make the not_if guard work.
Chef Version
The last one I guess? I linked the most recent doc above
Definition of Done
When the contradiction has been resolved.