Today I Learned

2022/10/03

bash shell

That you can write >& 1 and it still redirects to stdout! example:

f() { echo "ok" >&2; }
f 2>& 1 | grep ok