TYPE may be one of :commands, :results, :both or :either, defaulting to
:commands, otherwise nil is returned."
(when (or (and (eq type :commands)
TYPE may be one of :commands, :results, :both or :either, defaulting to
:commands, otherwise nil is returned."
(when (or (and (eq type :commands)