| ▲ | emmelaich 5 hours ago | |||||||
A gotcha for me originally and perhaps others is that while using ordering like
sends stdout and stderr to blah, imitating the order with pipe instead does not.
This is because | is not a mere redirector but a statement terminator. | ||||||||
| ▲ | time4tea 4 hours ago | parent | next [-] | |||||||
Useless use of cat error/award But also | isnt a redirection, it takes stdout and pipes it to another program. So, if you want stderr to go to stdout, so you can pipe it, you need to do it in order. bob 2>&1 | prog You usually dont want to do this though. | ||||||||
| ||||||||
| ▲ | inigyou 4 hours ago | parent | prev [-] | |||||||
Why would that second one be expected to work? | ||||||||