linux - tmux: confusing behavior with redirection and piping -


here trying - copy tmux buffer contents file.

first attempt:

$ tmux show-buffer > myfile 

this "hangs", in never completes.

however, can like:

$ tmux show-buffer | cat > myfile 

then try else, use 'tee' command instead:

$ tmux show-buffer | tee myfile  .. ..  tee: write error 

it displays "tee: write error" @ end, .. indicating part of buffer prints, not (as should) print whole buffer. file has entire contents, however.

i believe has how tmux show-buffer works , it's relation redirection , piping behavior. know more this?

this seems have been issue older tmux version (1.5). 1.8, works fine.

related link


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -