I like to increment the most significant digit of my terminal history size every time I run into a compiler error that exceeds the previous value. On Saturday, it went up from 40k to 50k.
I laugh to hide my pain.
I laugh to hide my pain.
|& is your friend:
g++ foo.cc |& less
g++ foo.cpp 2>&1 | tee ./log
or, the shorthand of 2>&1 |: g++ foo.cpp |& tee ./log 2>&1
as part of the redirect?(Probably this is an ideal LLM question though!)
I likely got that memorized from the time that I wrote a shell (/bin/sh) tutorial back in the day.
A non-problem if you use any IDE which has been able to group error under foldable menus (such things have existed on Linux for longer than some of the people you are teaching may have been on this planet)