On Fri, Jul 12, 2019 at 11:09:20AM +0200, Solene Rapenne wrote:
> >Synopsis:    problem with cat - | tee
> >Environment:
>       System      : OpenBSD 6.5
>       Details     : OpenBSD 6.5-current (GENERIC.MP) #127: Thu Jul 11 
> 15:44:36 MDT 2019
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>     There is a behavior change with "cat - | tee foobar" since 6.5 and
>     25th June snapshot.
> 
>     cat - > foobar works correctly.
> 
>     I stumbled on this because for some reasons, I have a command
>     sending text to ed and then use cat - to allow me continue input
>     within ed(1):
>     ( echo a ; date '+%s;' | tr -d '\n' ; cat - ) | ed file
> 
>     I've been able to reduce it to cat - | tee file for reproducing the
>     bug.
> 

reverting anton@ diff about file offset changes make it work again.

Reply via email to