I'm having a weird problem on Ubuntu 18.04 (Desktop) where certain commands don't display output to the terminal when they are run when they definitely should. I can still capture the output of the command using, e.g.,
xclip. The two commands I'm having this issue for is
git branch (but nothing else git-related). I can't figure out what the link is between these two, and I haven't spotted anything else that does this.
For example, if I run:
systemctl status cron
I don't get output, but if I run:
systemctl status cron | xclip -selection clipboard
then the status of the cron service is available on my clipboard, as expected.
This happens on both GNOME's terminal and the standard TTY.