Package: tmux
Version: 2.5-2
Severity: normal

Dear Maintainer,

I often create new panes just to run a command (so that the pane
closes as soon as the command finishes) but I still want to log its
output to a file for later investigation when needed. So I use
pipe-pane to log it, but the log gets randomly truncated.

To illustrate the problem, I checked launching in a new pane running a
shell:

$ tmux pipe-pane "sleep 1s; wc -l > /tmp/log"; seq 10000; logout

and I get some random (and < 10000, obviously) number in log.

I expected obviously all the output to be piped to the command. Of
course, in such cases that means that tmux has to wait for the command
to finish reading.
I think it would make more sense to keep the pane open while this
happens than closing it as soon as the command ends.

[This is probably a bug upstream but I didn’t check.]

Best regards


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tmux depends on:
ii  libc6           2.24-12
ii  libevent-2.0-5  2.0.21-stable-3
ii  libtinfo5       6.0+20161126-1
ii  libutempter0    1.1.6-3
ii  locales         2.24-12

tmux recommends no packages.

tmux suggests no packages.

-- no debconf information

Reply via email to