if u d try echo .. | tee >( >/dev/null ) | tail -1 i havent tested, but im trying to say, the stdout by head seems to be taken i mean heads stdout prioritizes im not sure.. ppl ( that know .. ) .. write about it :)
---------- Forwarded message --------- From: Budi <budikus...@gmail.com> Date: Mon, Sep 6, 2021, 09:38 Subject: Why tail coreutil cannot work as its input is from tee To: <bug-bash@gnu.org> How come tail coreutil cannot work as its input is from tee $ echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tail -1 1 But : $ echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tee >(head -1) |tail -1 9 Please help explain