Closed chrenderle closed 2 years ago
Thanks for reporting. This is wrong, version and help should be printed to stdout if explicitely asked for (but should still go to stderr on errors).
fixed in: 4fcbbad802093ac23220fd6eff56db85297878b4
included in btrbk-0.32.2
I wanted to pipe the version message to grep to extract the version number. In the process I found out, that the version message is printed to stderr instead of stdout. Is there a particular reason why the version number is printed to stderr? In my opinion it doesn't make sense because it is not an error.
Because of this one needs to use
btrbk --version 2>&1 | grep <expression>
instead ofbtrbk --version | grep <expression>