Some success messages are printed to stdout
Some success messages are printed to stdout
instead of stderr
. This is undesirable when trying to run grub-mkconfig
in a BE and redirect the output to a file - the '<BE name>' unmounted successfully.
message appears in the file.
Example:
# bemerge -b funtoo-synced -- bash -c "echo one >&1; echo two >&2"
'funtoo-synced' mounted successfully on: '/tmp/tmp.IDUwRw'.
one
two
'funtoo-synced' unmounted successfully.
# bemerge -b funtoo-synced -- bash -c "echo one >&1; echo two >&2" > /tmp/stdout
two
# bemerge -b funtoo-synced -- bash -c "echo one >&1; echo two >&2" 2> /tmp/stderr
'funtoo-synced' mounted successfully on: '/tmp/tmp.pSrT6a'.
one
'funtoo-synced' unmounted successfully.
The uses of printf
(not fprintf
) I've found in the code: