bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why tail coreutil cannot work as its input is from tee


From: Alex fxmbsw7 Ratchev
Subject: Re: Why tail coreutil cannot work as its input is from tee
Date: Mon, 6 Sep 2021 09:51:20 +0200

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 <budikusasi@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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]