I have the following command:
2>&1 compiler \
--flag1 \
--flag2 \
--option X=10 \
build \
2>&1 | tee -a output.log
I'm not entirely sure what is the behavior, is it redundant and not needed?
I've used the redirection at the start to print to stderr
>&2 echo "Diagnostic Title"
I'm going over but struggling a bit and see no mention of start vs end of command spec:
Any help is appreciated!
2>&1
seems redundant. Related: How is this command legal? "> file1 < file2 cat"