I am trying to attribute the output of a command that just prints and output to the Stata screen (print) to a local macro.

. reghdfe, version
c:\ado\plus\r\reghdfe.ado
*! version 5.2.9 06aug2018

How can I "capture" the "*! version 5.2.9 06aug2018" output to a local macro named "v"?

OBS: the "capture" command itself stops the printing of the output and records the error code. Not the output to the screen
OBS2: reghdfe used to have a e(version) return vector that is no longer present in the newest version, so I am trying this workaround.